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
Store all types of error message in json format and send the response back based on the error type.
For example
module.exports = { SERVER_ERROR: { message: "Server error", statusCode: 500 }, USER_NOT_FOUND: { message: "User not found", statusCode: 404 } };
If you have suggestions for error messages based on the routes and controller we're using, please share them in comments below.
Link to errorResponse.json file.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Store all types of error message in json format and send the response back based on the error type.
For example
If you have suggestions for error messages based on the routes and controller we're using, please share them in comments below.
Link to errorResponse.json file.
The text was updated successfully, but these errors were encountered: