class Lutaml::Hal::Client
def handle_response(response, url)
def handle_response(response, url) debug_api_log(response, url) if @debug case response.status when 200..299 response.body when 400 raise BadRequestError, response_message(response) when 401 raise UnauthorizedError, response_message(response) when 404 raise NotFoundError, response_message(response) when 500..599 raise ServerError, response_message(response) else raise Error, response_message(response) end end