UNPKG

ang-errors

Version:

errors management for the ANG API'S

15 lines (13 loc) 964 B
const errorMessages = { badRequest: 'Bad request: The request cannot be fulfilled due to bad syntax.', unauthorized: 'Unauthorized: The request requires user authentication.', forbidden: 'Forbidden: The server understood the request but refuses to authorize it. Access token does not have the required scope.', notFound: 'Not found: The server has not found anything matching the Request-URI.', unavailable: 'Service Unavailable: The service is temporarily unavailable', notImplemented: 'Not Implemented: The server does not support the functionality required to fulfill the request.', unprocessableEntity: 'Unprocessable Entity: The syntax of the request entity is correct, and The server understands the content type of the request entity, but was unable to process the contained instructions.', /* list all the error messages you would like to return to the client. * */ }; module.exports = errorMessages;