Looking at [jsend website](https://labs.omniti.com/labs/jsend) it seems that the error method is missing two optional arguments, namely code and data.
Looking at jsend website it seems that the error method is missing two optional arguments, namely code and data.