How to parse the error in the json response