mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-23 03:15:25 +00:00
fix(registration): discrepancy between 401 response and 500 log statement
This commit is contained in:
@@ -191,6 +191,7 @@ pub fn status_code(&self) -> http::StatusCode {
|
||||
| Self::Reqwest(error) => error.status().unwrap_or(StatusCode::INTERNAL_SERVER_ERROR),
|
||||
| Self::Conflict(_) => StatusCode::CONFLICT,
|
||||
| Self::Io(error) => response::io_error_code(error.kind()),
|
||||
| Self::Uiaa(_) => StatusCode::UNAUTHORIZED,
|
||||
| _ => StatusCode::INTERNAL_SERVER_ERROR,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user