We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f05eb commit 03e782cCopy full SHA for 03e782c
plugins/error.rst
@@ -36,3 +36,8 @@ writing a library around an API, the best practice is to have the client convert
36
domain objects, and transform HTTP errors into meaningful domain exceptions. In that scenario,
37
the ErrorPlugin is not needed. It is more efficient to check the HTTP status codes yourself than
38
throwing and catching exceptions.
39
+
40
+If your application handles responses with 4xx status codes, but needs exceptions for 5xx status codes only,
41
+you can set the option ``only_server_exception`` to ``true``::
42
43
+ $errorPlugin = new ErrorPlugin(['only_server_exception' => true]);
0 commit comments