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

Send HTTP status code 400 for invalid requests #124

Merged
merged 2 commits into from
Feb 19, 2017

Conversation

clue
Copy link
Member

@clue clue commented Feb 17, 2017

Currently, sending an invalid request will result in the connection simply being dropped.

This simple PR changes this to respond with an HTTP/1.1 400 Bad request message.

Recipients of an invalid request-line SHOULD respond with […] a 400 (Bad Request) error […]

https://tools.ietf.org/html/rfc7230#section-3.1.1

This is also the base for some more (upcoming) error handling issues.
Builds on top of #123.

@clue clue added this to the v0.6.0 milestone Feb 17, 2017
Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Successfully merging this pull request may close these issues.

3 participants