set_response_status Method
Sets an HTTP status to be sent with the response.
Syntax
def set_response_status(connection_id: int, status_code: int) -> None: ...
Remarks
Use this method to set an HTTP status for the request. A good place to call this method is a request-marking event, such as on_get_request.