Error States
Last updated
What is Error States?
Error states in Next.js routing refer to how your application handles situations where a route cannot be successfully loaded or rendered. Errors can be divided into two categories: expected errors and uncaught exceptions.
Expected errors are those that can occur during the normal operation of the application, such as those from server-side form validation or failed requests. These errors should be handled explicitly and returned to the client.
Uncaught exceptions are unexpected errors that indicate bugs or issues that should not occur during the normal flow of your application. These should be handled by throwing errors, which will then be caught by error boundaries.
Free resources to learn Error States
- Official docsError Handling
- VideoNext.js 15 Tutorial - Error Handling
Error States: common questions
Can I learn Error States in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Error States in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Error States tutorial for beginners?
It is lesson 28 of 94 in the free Next.js roadmap, in stage 12, Error States. If you are new to Next.js, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.