Skip to main content

write_api_error

Function write_api_error 

Source
pub fn write_api_error(w: &mut dyn Write, e: &Error, json: bool) -> Result<()>
Expand description

Writes an API error to the error output: code: message (requestId ...), the details and the Retry-After. With json and a server ErrorResponse, writes the body as it came (indented).