Expand description
HTTP response helpers.
Functions§
- denied
- Create a response for when the server denied the request.
- host_
not_ allowed - Create a text/plain response for not allowed hosts.
- internal_
error - Create a response for json internal error.
- malformed
- Create a json response for empty or malformed requests (400)
- method_
not_ allowed - Create a text/plain response for disallowed method used.
- ok_
response - Create a valid JSON response.
- too_
large - Create a json response for oversized requests (413)
- too_
many_ requests - Create a response for when the server is busy and can’t accept more requests.
- unsupported_
content_ type - Create a response for unsupported content type.