Skip to content
Bug Barometer

API Manager: PATCH REST API operations return 502 Bad Gateway instead of the expected status code

Not fixed yet. Salesforce has scheduled a fix.

Summary

When making REST API calls to API Manager (such as PATCH operations), users may intermittently receive HTTP 502 Bad Gateway errors. This occurs because API Manager is masking downstream error responses, including 429 Too Many Requests, from Exchange and returning a 502 to the client instead of the correct status code.


Observed Behaviour:


Client receives HTTP 502 Bad Gateway with payload {"name": "ExchangeError", "title": "Exchange error", "message": "There was an error while talking to Exchange"} instead of the downstream status code (e.g., 429).


Expected behavior:

The original downstream status code (e.g., 429 Too Many Requests) should be propagated directly to the client so it can be handled appropriately.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Scheduled

    Nov 30, 2026

Also open in API Manager