Node.js Boilerplate
Budget: $30 – $250 USD
I am a Node.js programmer who needs help with the boiler template, https://github.com/hagopj13/node-express-boilerplate
I need to find a way to handle the custom error messages and provide a user-friendly way of displaying these errors to users.
In the Services folder inside the file auth.service.js, there is a bunch of thrown messages, example: throw new ApiError(httpStatus.UNAUTHORIZED, 'Please authenticate');
These error messages are just displayed on the screen. What I need is to redirect the user to a page and provide a better user experience by displaying these error messages inside an actual page.
I need to find a way to handle the custom error messages and provide a user-friendly way of displaying these errors to users.
In the Services folder inside the file auth.service.js, there is a bunch of thrown messages, example: throw new ApiError(httpStatus.UNAUTHORIZED, 'Please authenticate');
These error messages are just displayed on the screen. What I need is to redirect the user to a page and provide a better user experience by displaying these error messages inside an actual page.