Correct, a 400 is handled internally before any other handler,
see also https://forum.nginx.org/read.php?2,158557,158557#msg-158557
see also https://forum.nginx.org/read.php?2,158557,158557#msg-158557