WoodWing Help Center

Elvis 4 REST API - error handling

Elvis 4 REST API - error handling

Since HTTP error codes do not work with cross-domain AJAX calls and JSONP requests, errors are returned in JSON format with a normal HTTP 200 status.

If you want your server to produce errors as normal HTTP status codes instead of the JSON error object, set sendServiceErrorAsJson=false in your server config.

JSON error response

  • errorcode The error code. This is the value that would have been returned as http status code.
  • message A short message indicating why the operation failed.
{
  "errorcode" : 401,
  "message" : "Not logged in"
}
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.