---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/31502#article
headline: "31502: Bad Gateway"
url: https://www.twilio.com/docs/api/errors/31502
inLanguage: en
dateModified: 2025-12-12T18:14:22.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 31502: Bad Gateway

Log Level: ERROR

## Description

The server is acting as a gateway or proxy, and received an invalid response from a downstream server while attempting to fulfill the request.
