Answer by Rafique Mohammed for HTTP GET Request Status 204 Vs 404
Let me give my 2 cents on this. I hope you already know the difference between 404 vs 204.The scenario i would prefer to use each status code are :404 Status Code404 means that the Resource not found...
View ArticleAnswer by Wilson Neto for HTTP GET Request Status 204 Vs 404
I agree with the responses, but I think is 204 or 200, it depends of your response when the album list is empty.If you will return a empty array, the return it with 200 code, if you prefer to don't...
View ArticleAnswer by Ankit C for HTTP GET Request Status 204 Vs 404
When you ask for a specific resource, say a user, and the user doesn't exist, then you should return 404. For example, you have an API to retrieve a user using the following...
View ArticleAnswer by Jefferson Lima for HTTP GET Request Status 204 Vs 404
Here is what the RFC2616 that defines the HTTP protocol says about Status-codes:The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization...
View ArticleAnswer by JHH for HTTP GET Request Status 204 Vs 404
Is the absence of any album really seen as an error? Assuming the albums are returned as a JSON array, the common response to such a situation would be a HTTP 200 with an empty array as the...
View ArticleAnswer by Saphirel for HTTP GET Request Status 204 Vs 404
Error Code 404The web site hosting server will typically generate a "404 Not Found" web page when a user attempts to follow a broken or dead link.Return Code 204The server has fulfilled the request but...
View ArticleHTTP GET Request Status 204 Vs 404
I have 2 resources User and Album. A user has a list of albums. To get albums there are 2 REST API.user/{userId}/albums/{albumId} gets album by albumId. If not found returns 404user/{userId}/albums...
View Article
More Pages to Explore .....