Skip to content

fix: generalize the http status code returned to nginx when required#86

Open
asteed wants to merge 2 commits intoadobe-apiplatform:masterfrom
asteed:generalize-response-status-codes
Open

fix: generalize the http status code returned to nginx when required#86
asteed wants to merge 2 commits intoadobe-apiplatform:masterfrom
asteed:generalize-response-status-codes

Conversation

@asteed
Copy link

@asteed asteed commented Feb 3, 2026

In older OpenResty versions, NGINX was more lenient with invalid status codes.

In NGINX 1.27.1, it strictly validates that HTTP status codes must be between 100-599, so codes emitted by the gateway (ie: 401013) can cause unexpected failures

[error] invalid HTTP status code 401013 while sending to client

This fix is to replace a detailed status with it's generalization. For example: 401013 becomes 401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant