Skip to main content

status_code_response_with_message

Function status_code_response_with_message 

Source
pub fn status_code_response_with_message(
    status_code: &StatusCode,
    message: &str,
    request_headers: &HeaderMap,
) -> Result<Response<BoxBody>, Error>
Expand description

custom status code response with message in body