A request rejected by validation, such as a prompt longer than
max_model_len, got its 400 response and then a full "Exception in ASGI
application" traceback in the server log: the only handler that matched
it was registered for Exception, and Starlette runs that one in
ServerErrorMiddleware, which re-raises after responding. The 1.5.2
release matrix logged 44 of them.
VLLMValidationError and VLLMNotFoundError now have their own
registrations, so they are answered and not re-raised. Other exceptions
still reach the server log. Handler registration moves to
register_exception_handlers() so tests can build the same app.
Co-authored-by: mac <mac@MacBook-xinyi.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>