Closed Ma-Kas closed 7 months ago
Implement errorHandler middleware to handle error thrown in routes; Implement extendable custom error class; Extend custom error class with BadRequestError, NotFoundError, UnauthorizedError to throw with appropriate response code and message;
Implement errorHandler middleware to handle error thrown in routes; Implement extendable custom error class; Extend custom error class with BadRequestError, NotFoundError, UnauthorizedError to throw with appropriate response code and message;