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) 320 B
const responseType = { SUCCESS: 'SUCCESS', BAD_REQUEST: 'BAD_REQUEST', NOT_FOUND: 'NOT_FOUND', INTERNAL_SERVER_ERROR: 'INTERNAL_SERVER_ERROR', UNAUTHORIZED: 'UNAUTHORIZED', TOO_MANY_REQUESTS: 'TOO_MANY_REQUESTS', UNPROCESSABLE_ENTITY: 'UNPROCESSABLE_ENTITY', } module.exports = responseType;