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

Class InternalError

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

Source from the content-addressed store, hash-verified

50}
51
52export class InternalError extends Response {
53 constructor() {
54 const jsonBody = JSON.stringify({
55 errors: [
56 {
57 code: "INTERNAL_ERROR",
58 message: "internal error",
59 detail: null,
60 },
61 ],
62 });
63 const init = {
64 status: 500,
65 headers: {
66 "content-type": "application/json;charset=UTF-8",
67 },
68 };
69 super(jsonBody, init);
70 }
71}
72
73export class ManifestError extends Response {
74 constructor(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected