Skip to main content

error_reply

Function error_reply 

Source
pub fn error_reply(status: StatusCode, message: impl Into<String>) -> Response
Expand description

Build a JSON ApiResponse error body with the given HTTP status.