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: