class Aws::Stubbing::Protocols::EC2

def stub_error(error_code)

def stub_error(error_code)
  resp = Seahorse::Client::Http::Response.new
  resp.status_code = 400
  resp.body = <<~XML.strip
    <ErrorResponse>
      <Error>
        <Code>#{error_code}</Code>
        <Message>stubbed-response-error-message</Message>
      </Error>
    </ErrorResponse>
  XML
  resp
end