APIException: ability to pass status_code to __init__ method #8296
Unanswered
syberen
asked this question in
Ideas & Suggestions
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Relevant excerpt from the
APIException
class:If we can instantiate this class with a detail and error code, it might also be convenient to pass a
status_code
. Then it wouldn't be necessary to subclass to get a custom error response.Beta Was this translation helpful? Give feedback.
All reactions