Skip to main content

status_failure

Function status_failure 

Source
fn status_failure(method: &str, status: StatusCode, body: &str) -> SlackError
Expand description

A non-success status other than 429. The body may be an HTML error page, which the envelope decoder would report as a JSON parse failure

  • the status is what the operator needs, so name it and bound the body.