diff --git a/crates/utils/src/error.rs b/crates/utils/src/error.rs index 49e0fa52e..806a4f86f 100644 --- a/crates/utils/src/error.rs +++ b/crates/utils/src/error.rs @@ -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, } }