Fix bad http code
This commit is contained in:
parent
3004f57185
commit
053f08f927
@ -170,7 +170,7 @@ impl FromRequest for LoginToken {
|
||||
let token = match load_token_info(&token).await {
|
||||
Err(e) => {
|
||||
log::error!("Failed to load auth token! {}", e);
|
||||
return Err(actix_web::error::ErrorInternalServerError(
|
||||
return Err(actix_web::error::ErrorPreconditionFailed(
|
||||
"Failed to check auth token!",
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user