deepkit-framework icon indicating copy to clipboard operation
deepkit-framework copied to clipboard

DX: HTTP: throwing @ HTTP Middlewares

Open alpharder opened this issue 1 year ago • 0 comments

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.

alpharder avatar Jul 06 '24 06:07 alpharder