-
Notifications
You must be signed in to change notification settings - Fork 0
Response Object
Sven Schiffer edited this page Apr 28, 2015
·
5 revisions
{
"status": "ok",
"payload": []
{
The error
key includes a string constant as defined below.
The code
key represents the HTTP-Statuscodes as defined in [RFC-2616]
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
{
"status": "error",
"error": ERROR_CONSTANT,
"message": "Human readable message"
{
BAD_REQUEST: 400
UNAUTHORIZED: 401
INVALID_ACCESS_TOKEN: 401
NO_AUTHENTICATION_PROVIDER: 401
FORBIDDEN: 403
NOT_FOUND: 404
METHOD_NOT_ALLOWED: 405
UNSUPPORTED_MEDIA_TYPE: 415
INTERNAL_ERROR: 500