3 ms·
The client should try to parse the response body only if it has the appropriate Content-Type header value. It should not assume that responses with various sta
by mleonhard 7y ago
The client should try to parse the response body only if it has the appropriate Content-Type header value. It should not assume that responses with various status codes have a particular body format.
- jayd16 7y agoDo you suggest having a content-type header specific to your app? Something like "application/my-app+json"? Will most tooling handle this correctly? In my experience the always 200 api style is a lot more common.