MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / _send_error

Method _send_error

scripts/codex_sglang_responses_proxy.py:531–537  ·  view source on GitHub ↗
(self, status: int, payload: dict[str, Any])

Source from the content-addressed store, hash-verified

529 self.wfile.write(payload_bytes)
530
531 def _send_error(self, status: int, payload: dict[str, Any]) -> None:
532 body = json.dumps(payload, ensure_ascii=False).encode("utf-8")
533 self.send_response(status)
534 self.send_header("Content-Type", "application/json; charset=utf-8")
535 self.send_header("Content-Length", str(len(body)))
536 self.end_headers()
537 self.wfile.write(body)
538
539 def log_message(self, format: str, *args: Any) -> None: # noqa: A003
540 return

Callers 1

do_POSTMethod · 0.95

Calls 4

send_responseMethod · 0.45
send_headerMethod · 0.45
end_headersMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected