mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
fix(router/webhooks): map webhook event type not found errors to 422 (#1340)
Co-authored-by: Sampras Lopes <lsampras@protonmail.com>
This commit is contained in:
@ -507,7 +507,8 @@ impl From<errors::ApiErrorResponse> for StripeErrorCode {
|
||||
errors::ApiErrorResponse::WebhookBadRequest
|
||||
| errors::ApiErrorResponse::WebhookResourceNotFound
|
||||
| errors::ApiErrorResponse::WebhookProcessingFailure
|
||||
| errors::ApiErrorResponse::WebhookAuthenticationFailed => Self::WebhookProcessingError,
|
||||
| errors::ApiErrorResponse::WebhookAuthenticationFailed
|
||||
| errors::ApiErrorResponse::WebhookUnprocessableEntity => Self::WebhookProcessingError,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user