Return Errors like API json error response #146
Unanswered
basitalvi62
asked this question in
Q&A
Replies: 2 comments
-
Hey @basitalvi62 did you found a solution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
For custom handling, I simply added a condition to Exceptions\Handler.php... if ($exception instanceof \Spatie\WebhookClient\Exceptions\InvalidWebhookSignature) {
return response('', 401);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can return custom json response from App\Handler\CustomSignatureValidator::class if laravel request validations are failed.
Beta Was this translation helpful? Give feedback.
All reactions