Skip to content

Conversation

@martinsk82
Copy link
Contributor

@martinsk82 martinsk82 commented Apr 8, 2025

🧠 Motivation

Map client aborts to 499 and timeouts to 408.

Previously, both were returned as 500, mixing them with genuine server errors. Now, client disconnects are tracked as 499 (Client Closed Request), and request timeouts produce 408 (Request Timeout) to better categorize errors in logs and monitoring tools.

Previously, both were returned as 500, mixing them with genuine server errors. Now, client disconnects are tracked as 499 (Client Closed Request), and request timeouts produce 408 (Request Timeout) to better categorize errors in logs and monitoring tools.
@codecov
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 70.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 87.11%. Comparing base (bab9478) to head (4c32c54).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...main/java/io/javalin/http/HttpResponseException.kt 0.00% 4 Missing ⚠️
...ava/io/javalin/router/exception/ExceptionMapper.kt 80.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2385      +/-   ##
============================================
- Coverage     87.15%   87.11%   -0.05%     
- Complexity     1322     1323       +1     
============================================
  Files           148      148              
  Lines          4470     4478       +8     
  Branches        513      514       +1     
============================================
+ Hits           3896     3901       +5     
- Misses          354      358       +4     
+ Partials        220      219       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tipsy
Copy link
Member

tipsy commented Apr 9, 2025

This looks really great @martinsk82, thank you !

@tipsy tipsy merged commit 8321bdf into javalin:master Apr 9, 2025
15 checks passed
@martinsk82
Copy link
Contributor Author

I'm happy to help and thanks for the support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants