We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "resultcode": 200 ( for successful requests ) / 4xx or 5xx ( for failed requests) "success" : true / false, "message" : "Response message", "data" : response data ( if none - []) }
# use send_response() function for sending response var send_response = require("../general/response_manager.js").send_response return send_response(res, 400, "Message") { "resultcode": 400, "success": false, "message": "Message", "data": [], } return send_response(res, 200, "Message", data) { "resultcode": 200, "success": true, "message": "Message", "data": data, }
{ "resultcode" : 200, "success" : true, "message" : "", "data": [{"some": "data"}], }
{ "resultcode" : 200, "success" : true, "message" : "", "data": [], }
{ "resultcode" : 400, "success" : false, "message" : "Parameters not given", "data": [], }
{ "resultcode" : 401, "success" : false, "message" : "User auth fail", "data": [], }
{ "resultcode" : 500, "success" : false, "message" : "Internal server error", "data": [], }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Response Format
Common Responses
Success
Fail
The text was updated successfully, but these errors were encountered: