Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update return codes on message parsing errors. #909

Merged
merged 1 commit into from
Feb 18, 2018
Merged

Conversation

vankoven
Copy link
Contributor

502 status code indicates that gateway or proxy received an
invalid response from an inbound server. See RFC 7231 Section 6.6.3.

400 status code indicates a client error (e.g., malformed request
syntax, invalid request message framing, or deceptive request routing).
See RFC 7231 Section 6.5.1.

Note, that frang module can block responses and requests, but such
blocks shouldn't be confused for parsing errors. If request was
filtered out by frang, the 403 status code must be returned. If
response was filtered out, then the same 502 status code must be
returned.

Although the patch closes issue described in #900, more work (as fixing up content-length header) is required in #900.

502 status code indicates that gateway or proxy received an
invalid response from an inbound server. See RFC 7231 Section 6.6.3.

400 status code indicates a client error (e.g., malformed request
syntax, invalid request message framing, or deceptive request routing).
See RFC 7231 Section 6.5.1.

Note, that frang module can block responses and requests, but such
blocks shouldn't be confused for parsing errors. If request was
filtered out by frang, the 403 status code must be returned. If
response was filtered out, then the same 502 status code must be
returned.
@vankoven vankoven merged commit 74ac647 into master Feb 18, 2018
@vankoven vankoven deleted the ik-fix-status-codes branch February 18, 2018 12:23
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.

2 participants