NEXT14 how to display 404, 403, 500 page or custom error message in production build?
I’m using next14 and calling API for the data fetching. How to handle different API status in the app. I want to display 404, 403 and 500 pages based on the response. Also would like to display other 422 error messages. In production build I’m getting generic error message which I dont want to display.