added bad request exception and json error check for request
verify we can parse json response