class Google::Cloud::Error
def status_code
over HTTP/REST.
This is typically present on errors originating from calls to an API
object, if both are present. Otherwise returns `nil`.
Returns the value of `status_code` from the underlying cause error
#
def status_code return nil unless cause && cause.respond_to?(:status_code) cause.status_code end