From 7d88545a37496b7528cb43a651cf625b42e7aac6 Mon Sep 17 00:00:00 2001 From: Youssef Benhssaien Date: Sun, 13 Sep 2020 19:25:35 +0200 Subject: [PATCH] toArray method throw exception too --- http_client.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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