Quantcast
Channel: Should a REST Service Error Response Payload be Consistent with the Media Type - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Chris Pratt for Should a REST Service Error Response Payload be...

First, an error doesn't have to include a payload. It's perfectly reasonable to just return a status code like 401 with an empty response body. However, if you need to return payload, then the response...

View Article



Should a REST Service Error Response Payload be Consistent with the Media Type

I have a REST service that supports various media types (MIME types) such as application/xml, application/json, application/vnd.ms-excel, text/plain. This service is consumed by browsers requests as...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>