Create an unauthorized (401) error.
(message: impl Into<String>)
| 295 | |
| 296 | /// Create an unauthorized (401) error. |
| 297 | pub fn unauthorized(message: impl Into<String>) -> Self { |
| 298 | Self::HttpError { |
| 299 | status: 401, |
| 300 | message: message.into(), |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | /// Create a forbidden (403) error. |
| 305 | pub fn forbidden(message: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected