class IBM::Cloud::SDKHTTP::Exceptions::HttpStatusError

An exception for http status errors with a response attribute. @param response [IBM::Cloud::SDK::VPC::Response] The original response object.

Public Class Methods

new(response) click to toggle source
# File lib/ibm/cloud/sdk_http/exceptions.rb, line 23
def initialize(response)
  msg = "Invalid status #{response.code} for url \"#{response.url}\", #{response.reason}. #{response.body}"
  super(msg, response)
end