Config 1.6: Error Codes

When something goes wrong, Genelet reports an error code and has the error string in HTML page or JSON data.  Since http Status Code lies between 100 and 999, Genelet error code lies between 1001 and 1999.

For your specific project, define your customized error code in config.json, just to make sure they are above 2000.  Genelet will report the errors in the same way as the built-in errors.

Errors       {"2001": "some error1", "2002": "some error2", ...}

Comments are closed.