class Google::Cloud::Error

def header

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