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

ctx.throw with 449 is transformed in error 500 #1104

Closed
MathRobin opened this issue Dec 9, 2017 · 1 comment
Closed

ctx.throw with 449 is transformed in error 500 #1104

MathRobin opened this issue Dec 9, 2017 · 1 comment

Comments

@MathRobin
Copy link

Hi !

When i want to use the http code 449 "Retry With", koa transform it to 500. How can i allow this status please ?

I know this is not a standard http code, introduced by Microsoft. But currently, i need it...

So, can you help me please ?

Thanks in advance !

@fl0w
Copy link
Contributor

fl0w commented Dec 9, 2017

Non standard status codes are not supported by jshttp/statuses (which Koa depends on).
See ongoing discussion, and consider monkey patching.

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

No branches or pull requests

2 participants