Skip to content

Commit aff57d2

Browse files
Nyholmdbu
authored andcommitted
Added note about HttpException is not thrown by default (#132)
Added note about HttpException is not thrown by default
1 parent e814241 commit aff57d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

httplug/exceptions.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ TransferException something unexpected happened \-
1717
``getResponse()``
1818
================================== ============================= ===================
1919

20+
.. note::
21+
By default clients will always return a PSR-7 response instead of throwing a ``HttpException``. Write your
22+
application to check the response status or use the :doc:`/plugins/error` to make sure
23+
the ``HttpException`` is thrown.
24+
2025
.. note::
2126

2227
The ``sendAsyncRequest`` should never throw an exception but always return a

0 commit comments

Comments
 (0)