Error Handling
If the JWT is incorrect or is missing, the following response is sent:
{ "jsonrpc": "2.0", "id": 1, "result": { "success": false, "data": "", "error_num": 55, "error_message": "Token is missing", "undo_id": null, "undo_type": null, "undo_message": null, "errorForEndUser": null } }
Error Codes
Code | Description |
|---|---|
10 | Signing key cannot be empty. |
12 | Invalid key: Should be resource of private key. |
20 | Unsupported algorithm [algorithm type]. |
22 | Invalid token: Missing header algorithm |
30 | Invalid maxAge: Should be greater than 0. |
32 | Invalid leeway: Should be between 0-120 |
40 | JSON failed: [JSON error message] |
50 | Invalid token: Incomplete segments |
52 | Invalid token: Expired |
54 | Invalid token: Not Now |
60 | Invalid Token: Signature Failed |
70 | Invalid Token: Unknown key ID |
55 | Token is missing |
56 | Connection request was not confirmed on Chef device within 60 seconds. |
57 | Device authentication process is declined by user. |