use 403 for auth check fails everywhere else
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
1b41e35f1d
commit
6394b1812c
2 changed files with 6 additions and 6 deletions
|
@ -737,7 +737,7 @@ impl Service {
|
|||
)
|
||||
.map_err(|e| {
|
||||
error!("Auth check failed: {:?}", e);
|
||||
Error::BadRequest(ErrorKind::InvalidParam, "Auth check failed.")
|
||||
Error::BadRequest(ErrorKind::forbidden(), "Auth check failed.")
|
||||
})?;
|
||||
|
||||
if !auth_check {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue