mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-23 18:35:56 +00:00
parent
dc9abcede1
commit
1d94c26e5a
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ cfg_if! {
|
|||
match self.error_type {
|
||||
LemmyErrorType::IncorrectLogin => actix_web::http::StatusCode::UNAUTHORIZED,
|
||||
LemmyErrorType::NotFound => actix_web::http::StatusCode::NOT_FOUND,
|
||||
LemmyErrorType::RateLimitError => actix_web::http::StatusCode::TOO_MANY_REQUESTS,
|
||||
_ => actix_web::http::StatusCode::BAD_REQUEST,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue