class Aws::Stubbing::Protocols::Json

def stub_error(error_code)

def stub_error(error_code)
  resp = Seahorse::Client::Http::Response.new
  resp.status_code = 400
  resp.body = <<~JSON.strip
    {
      "code": #{error_code.inspect},
      "message": "stubbed-response-error-message"
    }
  JSON
  resp
end