fix(registration): discrepancy between 401 response and 500 log statement
This commit is contained in:
parent
9a3f7f4af7
commit
da182c162d
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue