]> git.kaiwu.me - njs.git/commit
HTTP: fixed exception classes
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Jun 2026 02:06:15 +0000 (19:06 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 3 Jun 2026 21:34:17 +0000 (14:34 -0700)
commit0b512efd4d59250d72180eed7baacb3f29229123
treeb736f1c6f1f281c046e8116399dc79f0f5a6e2af
parentd7996f1b9b89eedf9e8809efd70b4fd21a651aa7
HTTP: fixed exception classes

Report HTTP request API misuse as TypeError and status bounds violations as
RangeError.  Keep nginx output and request body collection failures as
InternalError, since they are host/runtime failures rather than invalid
JavaScript arguments.
nginx/ngx_http_js_module.c
nginx/t/js_access_body.t
nginx/t/js_headers.t
nginx/t/js_request_form.t
nginx/t/js_variables.t