File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,48 +59,6 @@ export class HttpDispatcher {
5959 } ;
6060 }
6161
62- /**
63- * 501 Not Implemented – route is declared but handler is a stub or missing.
64- */
65- private notImplemented ( route : string , service ?: string ) {
66- return {
67- status : 501 ,
68- body : {
69- success : false ,
70- error : {
71- code : 501 ,
72- message : `Not Implemented: ${ route } ` ,
73- type : 'NOT_IMPLEMENTED' as const ,
74- route,
75- service,
76- hint : service
77- ? `The "${ service } " service route is declared but has no handler. Install or implement the handler.`
78- : 'This endpoint is declared but not yet implemented.' ,
79- } ,
80- } ,
81- } ;
82- }
83-
84- /**
85- * 503 Service Unavailable – service exists in the route table but is currently down.
86- */
87- private serviceUnavailable ( route : string , service : string ) {
88- return {
89- status : 503 ,
90- body : {
91- success : false ,
92- error : {
93- code : 503 ,
94- message : `Service Unavailable: ${ service } ` ,
95- type : 'SERVICE_UNAVAILABLE' as const ,
96- route,
97- service,
98- hint : `The "${ service } " service is registered but currently unavailable. It may need to be started or a plugin installed.` ,
99- } ,
100- } ,
101- } ;
102- }
103-
10462 /**
10563 * 404 Route Not Found — no route is registered for this path.
10664 */
You can’t perform that action at this time.
0 commit comments