diff --git a/src/docs/sdk/event-payloads/contexts.mdx b/src/docs/sdk/event-payloads/contexts.mdx index 9be22962b5..7e5ee29cf0 100644 --- a/src/docs/sdk/event-payloads/contexts.mdx +++ b/src/docs/sdk/event-payloads/contexts.mdx @@ -732,3 +732,30 @@ envelope endpoint. } } ``` + + +## Response Context + +Response context contains information about the HTTP response associated with the event. + +The only and required field is `status_code`. + +This is mostly set on transactions in a web server environment where one transaction represents a HTTP request/response cycle. + +`status_code` + +: **Required.** The integer status code from the HTTP response associated with the event. +- Example: `200` + + +### Example Response Context + +```json +{ + "contexts": { + "response": { + "status_code": 404 + } + } +} +```