Created
February 28, 2013 08:57
-
-
Save hamnis/5055314 to your computer and use it in GitHub Desktop.
Collection + json error response
This file contains hidden or 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 /foo?input=invalid HTTP/1.1 | |
Host: example.com | |
Accept: application/vnd.collection+json,*/* | |
HTTP/1.1 400 Bad Request | |
Content-Type: application/vnd.collection+json | |
{ | |
"error": { | |
"title": "Expected int in input", | |
"code": "invalid_input_int", | |
"message": "Input was 'invalid' expected an int" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment