What happened
Lexwell Document Services exposed an API supporting two representations: a standard JSON format and a richer vendor-specific media type required by external case-management systems. Consumers selected their preferred format using the HTTP Accept header.
A gateway configuration update standardized request headers across services. During the rollout, the gateway stripped vendor-specific media type parameters from inbound Accept headers because they weren’t included in its allowlist. Requests that previously contained Accept: application/vnd.lexwell.case+json arrived at the backend as Accept: application/json.
External case-management vendors began receiving the basic format. Their integrations silently continued operating, but the additional fields they depended on were absent. Legal workflows that required those fields began failing—not immediately, but gradually, as cases that needed the extended representation were processed.
The root cause was difficult to trace. The case-management vendors had no indication from the API that their preferred representation hadn’t been honored. The API returned HTTP 200 with valid JSON. Only a detailed comparison of responses against expectations revealed the missing fields.
Root cause
The gateway change wasn’t tested against the full range of content negotiation behavior the API supported. The API didn’t return an error when the preferred representation couldn’t be provided—it silently fell back to the basic format. No contract test verified that the extended media type survived the full request path.
The fix
The gateway allowlist was updated to include vendor media type parameters. The API was updated to return HTTP 406 when no acceptable representation could be matched, rather than silently downgrading. Contract tests were added that verified the full Accept header survived the gateway and that the correct representation was returned.
Lesson learned
Content negotiation must be tested end-to-end through the full request path, including every gateway and proxy layer. Silent fallback to a default representation makes failures invisible to both the client and monitoring systems.