chore(router): added generic unauthorized response (#450)

This commit is contained in:
Rachit Naithani
2023-01-22 18:07:19 +05:30
committed by GitHub
parent a447921c15
commit 2c764a273e
2 changed files with 10 additions and 3 deletions

View File

@ -321,6 +321,7 @@ impl From<errors::ApiErrorResponse> for StripeErrorCode {
match value {
errors::ApiErrorResponse::Unauthorized
| errors::ApiErrorResponse::InvalidJwtToken
| errors::ApiErrorResponse::GenericUnauthorized { .. }
| errors::ApiErrorResponse::InvalidEphermeralKey => Self::Unauthorized,
errors::ApiErrorResponse::InvalidRequestUrl
| errors::ApiErrorResponse::InvalidHttpMethod => Self::InvalidRequestUrl,