The zeuz API returns custom error codes in the error field of the JSON response. Handle response data directly in your functions.
zeuz API endpoints return HTTP response status codes. See HTTP status code definitions for details.
It is important to check for invalid and expired login sessions in your code, and handle these events appropriately. Make sure you follow the login flow again if you receive an invalid or expired session response in the error field.
You can use the following code to check the error field for invalid_session and session_expired and retry the login if either error is present.
2021-aug-3 Page added with editorial review.