Massive user-story-oriented refactor
This commit is contained in:
+5
-1
@@ -71,7 +71,11 @@ pub fn err(status: StatusCode, code: &str, message: &str) -> ApiError {
|
||||
}
|
||||
|
||||
pub fn unauthorized(reason: impl Display) -> ApiError {
|
||||
err(StatusCode::UNAUTHORIZED, "unauthorized", &reason.to_string())
|
||||
err(
|
||||
StatusCode::UNAUTHORIZED,
|
||||
"unauthorized",
|
||||
&reason.to_string(),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn forbidden(message: &str) -> ApiError {
|
||||
|
||||
Reference in New Issue
Block a user