Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Added response context #1028

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/docs/sdk/event-payloads/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
```
Loading