Change missing authrization code

This commit is contained in:
many 2021-10-28 15:56:57 +02:00
parent cbaca2b579
commit 66f5de9703
No known key found for this signature in database
GPG Key ID: 2CEF23B75189EACA

View File

@ -141,7 +141,7 @@ impl Code {
InvalidGeoField => { InvalidGeoField => {
ErrCode::authentication("invalid_geo_field", StatusCode::BAD_REQUEST) ErrCode::authentication("invalid_geo_field", StatusCode::BAD_REQUEST)
} }
InvalidToken => ErrCode::authentication("invalid_token", StatusCode::FORBIDDEN), InvalidToken => ErrCode::authentication("invalid_api_key", StatusCode::FORBIDDEN),
MissingAuthorizationHeader => { MissingAuthorizationHeader => {
ErrCode::authentication("missing_authorization_header", StatusCode::UNAUTHORIZED) ErrCode::authentication("missing_authorization_header", StatusCode::UNAUTHORIZED)
} }