UNPKG

responsify-requests

Version:

This package will help you throw the response messages along with the proper status code and proper structure.

11 lines (10 loc) 216 B
const statusCode = { SUCCESS: 200, BAD_REQUEST: 400, UNAUTHORIZED: 401, NOT_FOUND: 404, SERVER_ERROR: 500, TOO_MANY_REQUESTS: 429, UNPROCESSABLE_ENTITY: 422 } module.exports = statusCode;