Skip to content

Commit 5bf1696

Browse files
Copilothotlong
andauthored
fix: remove unused notImplemented and serviceUnavailable methods to fix TS6133 build errors
Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/ca600493-4726-4b85-93ff-725579c765ea Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 61df5c2 commit 5bf1696

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

packages/runtime/src/http-dispatcher.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)