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

All paths are required to have 200 and default responses #18

Open
japsu opened this issue May 11, 2017 · 1 comment
Open

All paths are required to have 200 and default responses #18

japsu opened this issue May 11, 2017 · 1 comment
Labels

Comments

@japsu
Copy link

japsu commented May 11, 2017

djsw_wrapper requires all handlers to have 200 and default in responses. Lack thereof will cause a KeyError.

There are many situations where an endpoint will never answer with 200 OK, such as answering with 201 Created, 204 No Content or any of the 3xx redirects.

@japsu japsu changed the title All paths are required to have 200 and default responses All paths are required to have 200 and default responses May 11, 2017
@projob projob added the inbox label May 11, 2017
@projob projob changed the title All paths are required to have 200 and default responses All paths are required to have 200 and default responses May 11, 2017
@landswellsong
Copy link
Member

Good point, thanks. We'll look into that.

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

No branches or pull requests

3 participants