Expand description
Contains types that set the status code and corresponding headers of a response.
These types are designed to make it easier to respond correctly with a given status code. Each type takes in the minimum number of parameters required to construct a proper response with that status code. Some types take in responders; when they do, the responder finalizes the response by writing out additional headers and, importantly, the body of the response.
Structsยง
- Sets the status of the response to 202 (Accepted).
- Sets the status of the response to 400 (Bad Request).
- Sets the status of the response to 409 (Conflict).
- Sets the status of the response to 201 (Created).
- Creates a response with the given status code and underlying responder.
- Sets the status of the response to 403 (Forbidden).
- Sets the status of the response to 204 (No Content).
- Sets the status of the response to 404 (Not Found).
- Sets the status of the response to 401 (Unauthorized).