diff --git a/docs/platforms/python/integrations/django/index.mdx b/docs/platforms/python/integrations/django/index.mdx index 2644651231f39..14e20a608cba7 100644 --- a/docs/platforms/python/integrations/django/index.mdx +++ b/docs/platforms/python/integrations/django/index.mdx @@ -249,6 +249,24 @@ Note that `OPTIONS` and `HEAD` are excluded by default. + + +A set of integers that will determine which status codes should be reported to Sentry. + +The `failed_request_status_codes` option determines whether exceptions handled within Django should be + reported to Sentry. Unhandled exceptions that don't have a `status_code` attribute will always be reported to Sentry. + +Examples of valid `failed_request_status_codes`: + - `{500}` will only send events on HTTP 500. + - `{400, *range(500, 600)}` will send events on HTTP 400 as well as the 5xx range. + - `{500, 503}` will send events on HTTP 500 and 503. + - `set()` (the empty set) will not send events for any HTTP status code. + +The default is `{*range(500, 600)}`, meaning that all 5xx status codes are reported to Sentry. + + + + ## Next Steps