When working in real world projects, we might want to send different errors in response based on the environment in which the application is running. If the application is running in "development" environment, we might want to send as much information about the error to the client, as possible.
But if the environment is "production", we will send as little information to the client about the error, as possible. Let's see how we can achieve it in express.
ASP.NET Core GitHub Repo: https://github.com/manojjha86/ASP.NET-Core-mvc
NODE JS Course GitHub Repo: https://github.com/manojjha86/NODE-JS
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.