MCPcopy
hub / github.com/soketi/soketi / entityTooLargeResponse

Method entityTooLargeResponse

src/http-handler.ts:425–427  ·  view source on GitHub ↗
(res: HttpResponse, error: string)

Source from the content-addressed store, hash-verified

423 }
424
425 protected entityTooLargeResponse(res: HttpResponse, error: string) {
426 return this.sendJson(res, { error, code: 413 }, '413 Payload Too Large');
427 }
428
429 protected tooManyRequestsResponse(res: HttpResponse) {
430 return this.sendJson(res, { error: 'Too many requests.', code: 429 }, '429 Too Many Requests');

Callers 3

eventsMethod · 0.95
batchEventsMethod · 0.95
jsonBodyMiddlewareMethod · 0.95

Calls 1

sendJsonMethod · 0.95

Tested by

no test coverage detected