Skip to main content

unauthorized

Function unauthorized 

Source
pub fn unauthorized<E>(err: E) -> Error
where E: ErrorExtensions,
Expand description

Create an unauthorized error (HTTP 401).

Use this for authentication/authorization errors.