Implemented the API error converter
Implemented the internal server error converter
Extracted http client configuration to smaller methods