Skip to content
Sven Schiffer edited this page Apr 28, 2015 · 5 revisions

Success Response

{
	"status": "ok",
	"payload": []
{

Failed Response

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"
{

Possible ERRORS

  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
Clone this wiki locally