diff --git a/http_client.rst b/http_client.rst index 0d8648643b7..4cf88621e5c 100644 --- a/http_client.rst +++ b/http_client.rst @@ -896,7 +896,7 @@ Handling Exceptions When the HTTP status code of the response is in the 300-599 range (i.e. 3xx, 4xx or 5xx) your code is expected to handle it. If you don't do that, the -``getHeaders()`` and ``getContent()`` methods throw an appropriate exception, all of +``getHeaders()``, ``getContent()`` and ``toArray()`` methods throw an appropriate exception, all of which implement the :class:`Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface`:: // the response of this request will be a 403 HTTP error