3 ms·
> If you’re streaming a response, you start with an HTTP 200 code... but then what happens if an error occurs half Maybe a 202 Accepted code makes more sense
by bickeringyokel 5y ago
> If you’re streaming a response, you start with an HTTP 200 code... but then what happens if an error occurs half
Maybe a 202 Accepted code makes more sense
- masklinn 5y agoIt does not. 202 means the request has been accepted and will be processed somewhere somehow. Here the response is being returned immediately, just streamed.
- thibauts 5y ago200 looks perfectly valid. Any HTTP response can be interrupted at any time by any error down the stack (app crashing, server, VM, network etc). 200 does not a guarantee complete delivery.