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

View file

@ -191,6 +191,7 @@ impl Error {
| 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,
}
}