Fix Parsing of HTTPX::ErrorResponse and Add Hooks for Advanced Logging
There are usecases when users of the SDK need to perform custom logic before the request is sent or response is parsed, so they can add context to exception monitoring platforms.
This change also adds the following two hooks:
Client#before_submitting_request
Client#before_parsing_response