From c4fb582f7fa02eb54c9b57003660354a1e0d2559 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 8 Oct 2021 11:21:09 +0200 Subject: [PATCH] Clarify what error handling is for http-client --- http_client.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/http_client.rst b/http_client.rst index 6055fa7540c..0054f7c866e 100644 --- a/http_client.rst +++ b/http_client.rst @@ -965,8 +965,9 @@ responses in an array:: This behavior provided at destruction-time is part of the fail-safe design of the component. No errors will be unnoticed: if you don't write the code to handle errors, exceptions will notify you when needed. On the other hand, if you write -the error-handling code, you will opt-out from these fallback mechanisms as the -destructor won't have anything remaining to do. +the error-handling code (by calling ``$response->getStatusCode()``), you will +opt-out from these fallback mechanisms as the destructor won't have anything +remaining to do. There are three types of exceptions: