Function cgi::empty_response
source · pub fn empty_response<T>(status_code: T) -> Responsewhere
StatusCode: HttpTryFrom<T>,
Expand description
A HTTP Reponse with no body and that HTTP status code, e.g. return cgi::empty_response(404);
to return a HTTP 404 Not Found.