fix(registration): discrepancy between 401 response and 500 log statement

This commit is contained in:
Shane Jaroch
2026-02-25 05:39:23 -05:00
committed by Ellis Git
parent 9a3f7f4af7
commit da182c162d
+1
View File
@@ -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,
}
}