Intercept Undertow exception for UT000020: Connection terminated as request was larger than

130 views
Skip to first unread message

ralfbat...@gmail.com

unread,
Aug 7, 2023, 9:27:41 AM8/7/23
to WildFly
Dear Wildfly Team

Periodically, we face the issue that our clients are uploading files bigger than the configured file size limit.
The issue is that Undertow throws an exception, which involves 3 issues on our side:
1. We cannot send back a proper business message back to the client
2. The http status code sent back by Undertow is filtered out by our corporate proxy
3. The error log alarms our operational colleagues for something which is not an operational issue.

Therefore, is there a way to intercept or customize the exception handling for this particular case?

Thank you for any help,
Ralf

Reply all
Reply to author
Forward
0 new messages