Function warp::reject::custom

source ·
pub fn custom(err: impl Into<Cause>) -> Rejection
Expand description

Rejects a request with a custom cause.

A recover filter should convert this Rejection into a Reply, or else this will be returned as a 500 Internal Server Error.