* removed handling for non-json response * added response body in RequestError.Error() and updated tests * done linting