Skip to main content

gen_error_response

Function gen_error_response 

Source
pub fn gen_error_response(code: u16) -> ResponseHeader
Expand description

Generate an error response with the given status code.

This error response has a zero Content-Length and Cache-Control: private, no-store.