MCPcopy
hub / github.com/msgbyte/tianji / status

Method status

src/server/model/aiRouter.ts:1780–1787  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

1778 private jsonBody: unknown;
1779
1780 status(code: number) {
1781 if (this.wroteBody && code >= 400) {
1782 this.bodyStartedBeforeFailure = true;
1783 }
1784
1785 this.statusCode = code;
1786 return this;
1787 }
1788
1789 setHeader(name: string, value: number | string | readonly string[]) {
1790 this.headers.set(name.toLowerCase(), normalizeHeaderValue(value));

Callers 15

app.tsFile · 0.80
authFunction · 0.80
handlerFunction · 0.80
buildOpenAIHandlerFunction · 0.80
buildOpenAIModelsHandlerFunction · 0.80
buildAnthropicHandlerFunction · 0.80
replayBufferedResponseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected