MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / textErrorBody

Function textErrorBody

scripts/proxy-utils.mjs:257–262  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

255}
256
257function textErrorBody(message) {
258 return {
259 contentType: "text/plain; charset=utf-8",
260 body: `Bad Gateway: ${message}`,
261 };
262}
263
264function writeProxyError(res, message, errorBody) {
265 if (res.destroyed) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected