svix-webhooks icon indicating copy to clipboard operation
svix-webhooks copied to clipboard

HTTPError and HTTPValidationError Information

Open cjnething opened this issue 2 years ago • 1 comments

Feature Request

As per a Slack discussion, I'd like to request a nice "@property" for accessing code and msg for HTTPError and HTTPValidationError. It would also be nice to get some documentation on the code types.

Motivation

This would be helpful for parsing errors and handling them appropriately.

Thanks all!

cjnething avatar Aug 11 '22 20:08 cjnething

Thanks @cjnething for the suggestion, this is definitely needed and we'll take a look at adding this. Hopefully in the coming week!

tasn avatar Aug 11 '22 20:08 tasn