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
First tracked here as Solution Scheduled
Nov 30, 2026
Also open in API Manager
403 Forbidden - "Invalid Client" Error When Using Imported Client Applications from External Identity Providers (e.g., Okta) in API Manager
In ReviewMuleSoft / API ManagerReported Mar 30, 20269 reports9reports
CoreServices error: Method Not Allowed (405) error when approving a contract for api instance present in Child Business Group (works fine Master Org)
Solution ScheduledMuleSoft / API ManagerReported Mar 14, 20257 reports7reports
Error request/body must NOT have additional properties when applying an outbound policy
Solution ScheduledMuleSoft / API ManagerReported Mar 31, 20266 reports6reports
API Manager Fails to Retain Child Business Group Context and Requires Browser Refresh to Load Navigation
Solution ScheduledMuleSoft / API ManagerReported Jun 23, 20265 reports5reports