fix(cwproxy): add error handling on request failure
In certain situations (for example 404/403) CW won't return json but an html error page. This breaks all the things ™ and doesn't provide any useful error message.
Add error handling for those situations.