Proper handling of errors
flexd opened this issue · 0 comments
flexd commented
"the reason why we pass HTTP errors to the parser anyway is because many of the API errors return HTTP error codes but also a more descriptive error in XML form (e.g. invalid API key returns a 403 but also specifies that it's the API key that's bad via the normal XML error format). What we might want to do is catch ParseErrors and return the original HTTPError if we can't parse a nicer error from the response. "