For all error cases, we are not getting the full error object.
Also the code and description is concatenated as part of the exception which is making the implementation harder.
Give us other ways to get the full JSONObject for error cases along with the http status code.