Created
June 25, 2014 19:27
-
-
Save tugberkugurlu/96e0c758fc501c5944c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET http://localhost:25135/api/cars HTTP/1.1 | |
User-Agent: Fiddler | |
Accept: application/json | |
Host: localhost:25135 | |
HTTP/1.1 200 OK | |
Content-Type: application/json; charset=utf-8 | |
Date: Wed, 25 Jun 2014 12:36:48 GMT | |
Content-Length: 68 | |
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET http://localhost:25135/api/cars HTTP/1.1 | |
User-Agent: Fiddler | |
Accept: application/json | |
Host: localhost:25135 | |
HTTP/1.1 404 Not Found | |
Date: Wed, 25 Jun 2014 12:36:52 GMT | |
Content-Length: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The question here is this: if you are returning a collection of things through your response body, would it make sense to return 404 if you don't have any item to fill the array? My money is on 200 here.