api_client: add custom exception handling support
The jobs-framework-cli uses a custom exception handling to translate common HTTP requests errors into more human readable errors.
Suggested-by: Taavi Väänänen hi@taavi.wtf Signed-off-by: Arturo Borrero Gonzalez aborrero@wikimedia.org