Token Errors:
- When authentication token is not provided
{ "success": false, "message": "Token not provided" }
- When authentication token provided is invalid
{ "success": false, "message": "Token invalid" }
- When authentication token expires
{ "success": false, "message": "Token expired" }
Validation Errors:
- Validation Errors occurs when required field is invalid or not provided
{ "success": false, "message": { "field_name(s)": [ "Error message(s)" ] } }
API Key related errors:
NOTE :In a fresh installation of faveo, API feature is disabled by default. It can be enabled by going into the admin panel > api and enabling API under API Configuration.
API key is not mandatory by default by but it can be made mandatory by going into the admin panel > api and enabling “API key mandatory” under API Configuration. It generates an API key, which has to be passed with all the APIs for APIs to be accessible.
- When API key is enabled by admin and it is not provided in the request
{ "success": false, "message": "api key is required" }
- When wrong API key is provided
{ "success": false, "message": "wrong API key" }
- When API is disabled by the admin
{ "success": false, "message": "API disabled" }