Skip to content

Return 413 for oversized request bodies - #276

Closed
snapetech wants to merge 1 commit into
mainfrom
agent/return-413-for-oversized-bodies
Closed

Return 413 for oversized request bodies#276
snapetech wants to merge 1 commit into
mainfrom
agent/return-413-for-oversized-bodies

Conversation

@snapetech

@snapetech snapetech commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • map Kestrel request-body-limit exceptions to 413 Problem Details
  • avoid leaking the configured byte limit
  • add focused exception-handler regression coverage

Verification

  • dotnet test tests/slskd.Tests/slskd.Tests.csproj --configuration Release --filter FullyQualifiedName~ExceptionHandlerTests
  • bash scripts/check-remediation-baseline.sh

Discovered while differentially testing slskR against frozen slskdN: a body one byte over web.max_request_body_size was reported as a generic 500.

@snapetech snapetech closed this Jul 17, 2026
@snapetech
snapetech deleted the agent/return-413-for-oversized-bodies branch July 24, 2026 17:36
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.

1 participant