Skip to content

Instantly share code, notes, and snippets.

@hamnis
Created February 28, 2013 08:57
Show Gist options
  • Save hamnis/5055314 to your computer and use it in GitHub Desktop.
Save hamnis/5055314 to your computer and use it in GitHub Desktop.
Collection + json error response
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