Skip to content

Commit 4af1003

Browse files
committed
Add note about streaming error responses
1 parent 701fd40 commit 4af1003

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/en/methods/streaming.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,16 @@ An example filter change by the user:
687687
Note that the `payload` property is not present for `filters_changed` events. And for `delete` and `announcements.delete` the payload is a string, not an object.
688688
{{</hint>}}
689689

690+
## Error responses
691+
692+
The streaming server will respond to error conditions with an HTTP 4XX response and a JSON body describing the error. For example:
693+
694+
```json
695+
{
696+
"error": "Unknown channel requested"
697+
}
698+
```
699+
690700
## See also
691701

692702
### Streaming server

0 commit comments

Comments
 (0)