Skip to content

Instantly share code, notes, and snippets.

@58bits
Created November 15, 2015 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 58bits/272a446250e1670c0f7c to your computer and use it in GitHub Desktop.
Save 58bits/272a446250e1670c0f7c to your computer and use it in GitHub Desktop.
application/vnd.storyserver+json errors
{
"uri": "http://0.0.0.0:9233/api/v1/users",
"links": {
"about": {
"href": "http://path.to/user/resource/1"
},
"describes": {
"href": "http://path.to/describes"
},
"help": {
"href": "http://path.to/help"
}
},
"statusCode": 409,
"statusMessage": "Conflict",
"error": {
"id": "a682135b-cb0c-404b-a26b-c5c0e9145cb7",
"message": "Username is not available.",
"name": "UniqueViolation",
"length": 204,
"severity": "ERROR",
"code": "23505",
"detail": "Key (username)=(bob) already exists.",
"schema": "public",
"table": "users",
"constraint": "users_username_unique",
"file": "nbtinsert.c",
"line": "406",
"routine": "_bt_check_unique",
"isdbError": true
}
}
{
"uri": "http://0.0.0.0:9233/api/v1/signin",
"links": {
"about": {
"href": "http://path.to/user/resource/1"
},
"describes": {
"href": "http://path.to/describes"
},
"help": {
"href": "http://path.to/help"
}
},
"statusCode": 400,
"statusMessage": "Bad Request",
"errors": [
{
"uri": "http://0.0.0.0:9233/api/v1/signin",
"links": {
"about": {
"href": "http://path.to/user/resource/1"
},
"describes": {
"href": "http://path.to/describes"
},
"help": {
"href": "http://path.to/help"
}
},
"error": {
"message": "Username is required.",
"name": "Required"
}
},
{
"uri": "http://0.0.0.0:9233/api/v1/signin",
"links": {
"about": {
"href": "http://path.to/user/resource/1"
},
"describes": {
"href": "http://path.to/describes"
},
"help": {
"href": "http://path.to/help"
}
},
"error": {
"message": "Password is required.",
"name": "Required"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment