Skip to content

Conversation

@joelwurtz
Copy link
Member

the ErrorPlugin is not needed. It is more efficient to check the HTTP status codes yourself than
throwing and catching exceptions.

If you need to handle 4XX responses, as having a 404 can have meaning in your http client, but sill want
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your application handles responses with 4xx status codes, but needs exceptions for 5xx status codes only, you can set the option ``only_server_exception`` to ``true``::

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot!

@dbu dbu merged commit 03e782c into master May 28, 2018
@dbu dbu deleted the joelwurtz-patch-1 branch May 28, 2018 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants