[PR #8873] [MERGED] docs: add missing error pages and update errors index/sidebar (#8868) #25169

Closed
opened 2026-04-15 22:44:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8873
Author: @Bekione
Created: 4/1/2026
Status: Merged
Merged: 4/1/2026
Merged by: @ping-maxwell

Base: mainHead: feat/docs-error-references


📝 Commits (3)

  • f392391 docs(errors): add missing error pages and update index/sidebar
  • 50214bd docs: refine error descriptions based on PR review
  • 1a9d774 Merge remote-tracking branch 'upstream/main' into feat/docs-error-references

📊 Changes

7 files changed (+162 additions, -0 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+20 -0)
docs/content/docs/reference/errors/account_not_linked.mdx (+34 -0)
📝 docs/content/docs/reference/errors/index.mdx (+5 -0)
docs/content/docs/reference/errors/internal_server_error.mdx (+13 -0)
docs/content/docs/reference/errors/invalid_code.mdx (+12 -0)
docs/content/docs/reference/errors/unable_to_create_session.mdx (+36 -0)
docs/content/docs/reference/errors/unable_to_create_user.mdx (+42 -0)

📄 Description

Summary

This PR adds documentation for several error codes that were missing from the Better Auth docs. It also updates the errors index and sidebar menu to include the new pages.

Changes

  • Added MDX files for the following error codes:
    • unable_to_create_user
    • unable_to_create_session
    • account_not_linked
    • invalid_code
    • internal_server_error
  • Updated docs/content/docs/reference/errors/index.mdx to list the new pages
  • Updated sidebar menu to include the new error pages

Motivation

The "Ask AI" button on error pages navigates to /docs/reference/errors/{error_code}. Missing pages caused 404s for these error codes. Adding the missing pages ensures the button works correctly and the documentation is complete.

Closes #8868


Summary by cubic

Adds docs for unable_to_create_user, unable_to_create_session, account_not_linked, invalid_code, and internal_server_error. Updates the errors index and sidebar so error-page links no longer 404.

Written for commit 1a9d774cac. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8873 **Author:** [@Bekione](https://github.com/Bekione) **Created:** 4/1/2026 **Status:** ✅ Merged **Merged:** 4/1/2026 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `main` ← **Head:** `feat/docs-error-references` --- ### 📝 Commits (3) - [`f392391`](https://github.com/better-auth/better-auth/commit/f39239146ed557d69237d43d622c182c9f62efa8) docs(errors): add missing error pages and update index/sidebar - [`50214bd`](https://github.com/better-auth/better-auth/commit/50214bd7bbb0128be0b927fc0ef650f7e1a43de2) docs: refine error descriptions based on PR review - [`1a9d774`](https://github.com/better-auth/better-auth/commit/1a9d774cacb293cabdda65bcd84dfe1d195c01a9) Merge remote-tracking branch 'upstream/main' into feat/docs-error-references ### 📊 Changes **7 files changed** (+162 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+20 -0) ➕ `docs/content/docs/reference/errors/account_not_linked.mdx` (+34 -0) 📝 `docs/content/docs/reference/errors/index.mdx` (+5 -0) ➕ `docs/content/docs/reference/errors/internal_server_error.mdx` (+13 -0) ➕ `docs/content/docs/reference/errors/invalid_code.mdx` (+12 -0) ➕ `docs/content/docs/reference/errors/unable_to_create_session.mdx` (+36 -0) ➕ `docs/content/docs/reference/errors/unable_to_create_user.mdx` (+42 -0) </details> ### 📄 Description ### Summary This PR adds documentation for several error codes that were missing from the Better Auth docs. It also updates the errors index and sidebar menu to include the new pages. ### Changes - Added MDX files for the following error codes: - `unable_to_create_user` - `unable_to_create_session` - `account_not_linked` - `invalid_code` - `internal_server_error` - Updated `docs/content/docs/reference/errors/index.mdx` to list the new pages - Updated sidebar menu to include the new error pages ### Motivation The "Ask AI" button on error pages navigates to `/docs/reference/errors/{error_code}`. Missing pages caused 404s for these error codes. Adding the missing pages ensures the button works correctly and the documentation is complete. Closes #8868 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds docs for `unable_to_create_user`, `unable_to_create_session`, `account_not_linked`, `invalid_code`, and `internal_server_error`. Updates the errors index and sidebar so error-page links no longer 404. <sup>Written for commit 1a9d774cacb293cabdda65bcd84dfe1d195c01a9. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:44:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25169