Skip to content

Custom Status Code Pages Not Fully Implemented in Next.js #36

@jaseel0

Description

@jaseel0

Description

Our Next.js project has custom status code pages (pages/404.js and pages/_error.js). Some pages are incomplete or broken, and certain HTTP status codes (e.g., 401 Unauthorized, 403 Forbidden) are not currently testable because the app does not have a login/authentication system. This impacts the user experience and automated documentation tools.

Steps to Reproduce

  1. Run the Next.js project locally or deploy it.
  2. Navigate to a non-existent route to trigger the 404 page.
  3. Trigger a server error (500) via an API route or manually throw an error.
  4. Observe the layout and messages on the status code pages.
  5. Note: 401/403 pages cannot be tested without an authentication system.

Expected Behavior

  • 404 and 500 pages render correctly with consistent layout and user-friendly messages.
  • Error pages are responsive and accessible on all devices.
  • If authentication is added in the future, 401 and 403 pages should be properly implemented.

Actual Behavior

  • 404 and 500 pages may have layout issues or missing content.
  • 401/403 pages are not implemented/testable because no login/auth system exists.

Screenshots/Logs

  • Attach screenshots of broken pages or console errors.
  • Include any server logs or terminal output.

Additional Context

  • Check pages/404.js and pages/_error.js for layout or content issues.
  • Consider adding placeholder 401/403 pages for future authentication support.
  • Ensure server-side rendering does not break when generating these pages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: frontendChanges specifically for the UI/Tailwind components.good first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions