UPD adding test for before response sent target being the Response
UPD adding Response object to target of before response sent
UPD adding test that target of after response is Response
UPD adding Response to after response sent target
UPD adding test for catching an Http\Exception\ClientError
UDP adding test to catch ServerError exceptions
UPD refactoring to get all the things in the try/catch block