Created
November 15, 2015 03:36
-
-
Save 58bits/272a446250e1670c0f7c to your computer and use it in GitHub Desktop.
application/vnd.storyserver+json errors
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
{ | |
"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 | |
} | |
} |
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
{ | |
"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