Finalizes and returns the response.
Sends a 500 Internal Server Error response.
Sends a 405 Method Not Allowed response.
Sends a 204 No Content response.
Sends a 404 Not Found response.
Redirects the client to the specified URL.
The URL to redirect to.
OptionalstatusCode: numberThe HTTP status code to use for the redirect.
Sends a JSON response with an optional status code.
The data to serialize and send as JSON.
OptionalstatusCode: numberThe HTTP status code for the response.
Sets a cookie on the response.
The name of the cookie to set.
The value to assign to the cookie.
Serialization options for the cookie.
Sets cache-control headers to prevent caching.
Represents an outgoing HTTP response with common helper methods.