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

Allow to set error message on 4/5xx #1832

Closed
romaricdrigon opened this issue Dec 29, 2016 · 3 comments
Closed

Allow to set error message on 4/5xx #1832

romaricdrigon opened this issue Dec 29, 2016 · 3 comments
Assignees
Labels

Comments

@romaricdrigon
Copy link
Contributor

Hello,

Right now, if we want to display a message to the user, we return a 200 response with errCustom and a custom error message.
An enhancement would be to be able to do the same, but over 4xx or 5xx responses. The issues with using 200 is that HTTP middleware (logging, proxies, Varnish...) will never get there are error happening, and won't work then.

@nao-pon
Copy link
Member

nao-pon commented Jan 10, 2017

@romaricdrigon Do you mean that you want to display messages to users with 4xx or 5xx HTTP response codes?

@romaricdrigon
Copy link
Contributor Author

Exactly!

@nao-pon nao-pon self-assigned this Jan 10, 2017
@romaricdrigon
Copy link
Contributor Author

Great, thank you very much!

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

2 participants