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

DX: HTTP: throwing @ HTTP Middlewares #589

Open
alpharder opened this issue Jul 6, 2024 · 0 comments
Open

DX: HTTP: throwing @ HTTP Middlewares #589

alpharder opened this issue Jul 6, 2024 · 0 comments

Comments

@alpharder
Copy link
Contributor

Throwing or passing next() an error (even HttpError) results in weird behavior:

Screenshot 2024-07-06 at 9 12 57 AM Screenshot 2024-07-06 at 9 13 36 AM

Expected result would be no Could not resolve request thing with 404 response code, but rather 403 response code with no.

Alternatively, it could be explicitly stated in documentation what is the allowed way of using middlewares (only directly interacting with HttpRequest/HttpResponse) and no other fancy things are allowed.

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

1 participant