class Google::Cloud::Error

def body

@returns [Object, nil]

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 `body` from the underlying cause error
#
def body
  return nil unless cause && cause.respond_to?(:body)
  cause.body
end