Process the error response json as in the spec