MCPcopy Create free account
hub / github.com/cloudflare/serverless-registry /

Class

src/errors.ts:97–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97export class ServerError extends Response {
98 constructor(message: string, errorCode = 500) {
99 super(JSON.stringify({ errors: [{ code: "SERVER_ERROR", message, detail: null }] }), {
100 status: errorCode,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected