Skip to content

Commit ad92ce6

Browse files
committed
docs: add note for http_errors
1 parent 7a89ef2 commit ad92ce6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/libraries/curlrequest.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ a Response instance to you. This takes the HTTP method, the url and an array of
8383

8484
.. literalinclude:: curlrequest/005.php
8585

86+
.. important:: By default, CURLRequest will throw ``HTTPException`` if the HTTP
87+
code returned is greater than or equal to 400. If you want to get the response,
88+
see the `http_errors`_ option.
89+
8690
.. note:: When ``$shareOptions`` is false, the options passed to the method will be used for the request. After sending the request, they will be cleared. If you want to use the options to all requests, pass the options in the constructor.
8791

8892
Since the response is an instance of ``CodeIgniter\HTTP\Response`` you have all of the normal information

0 commit comments

Comments
 (0)