diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e0ab33fb..7468e0cb01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Increases log size limits to better support log drains. ([#5441](https://github.com/getsentry/relay/pull/5441)) - Add functionality to process and store span attachments. ([#5423](https://github.com/getsentry/relay/pull/5423), [#5363](https://github.com/getsentry/relay/pull/5363)) - Apply existing cookie rules to `http.request.header.cookie.` fields. ([#5456](https://github.com/getsentry/relay/pull/5456)) +- Return status code `413` if a request is rejected due to size limits. ([#5474](https://github.com/getsentry/relay/pull/5474)) - Add functionality to process and store trace attachments. ([#5457](https://github.com/getsentry/relay/pull/5457)) **Bug Fixes**: diff --git a/relay-server/src/endpoints/common.rs b/relay-server/src/endpoints/common.rs index 83b595c758..2aa68a6811 100644 --- a/relay-server/src/endpoints/common.rs +++ b/relay-server/src/endpoints/common.rs @@ -133,6 +133,7 @@ impl IntoResponse for BadStoreRequest { // now executed asynchronously in `EnvelopeProcessor`. (StatusCode::FORBIDDEN, body).into_response() } + BadStoreRequest::Overflow(_) => (StatusCode::PAYLOAD_TOO_LARGE, body).into_response(), _ => { // In all other cases, we indicate a generic bad request to the client and render // the cause. This was likely the client's fault.