(self, status: int, payload: dict[str, Any])
| 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 |
no test coverage detected