Skip to content

docs: Add comprehensive API error reference documentation#8848

Merged
mudler merged 1 commit into
mudler:masterfrom
localai-bot:feat/api-error-documentation-20260308044027
Mar 8, 2026
Merged

docs: Add comprehensive API error reference documentation#8848
mudler merged 1 commit into
mudler:masterfrom
localai-bot:feat/api-error-documentation-20260308044027

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

Purpose

This PR adds comprehensive API error documentation to help users understand and handle error responses from the LocalAI API.

Changes

  • Creates new documentation file: docs/content/reference/api-errors.md
  • Documents three error response formats (OpenAI, Anthropic, Open Responses)
  • Lists HTTP status codes and when they occur
  • Provides per-endpoint error scenarios for 18+ endpoints
  • Includes curl examples showing error responses
  • Adds client code examples for error handling
  • Cross-references related feature documentation

Verification

All documented errors were verified against actual error handling code in the codebase.

Related

Addresses UX Review Issue H1 - Create Standardized API Error Response Documentation

@netlify

netlify Bot commented Mar 8, 2026

Copy link
Copy Markdown

Deploy Preview for localai ready!

Name Link
🔨 Latest commit b7bfe4c
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69ad11a91c4f7800084721f1
😎 Deploy Preview https://deploy-preview-8848--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Document all error response formats (OpenAI, Anthropic, Open Responses),
HTTP status codes, per-endpoint error scenarios, and client error handling
examples based on actual error handling code in the codebase.

Signed-off-by: localai-bot <localai-bot@noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@localai-bot localai-bot force-pushed the feat/api-error-documentation-20260308044027 branch from 26993bc to b7bfe4c Compare March 8, 2026 06:05
@mudler mudler merged commit 36c1841 into mudler:master Mar 8, 2026
33 checks passed
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
docs: add comprehensive API error reference documentation

Document all error response formats (OpenAI, Anthropic, Open Responses),
HTTP status codes, per-endpoint error scenarios, and client error handling
examples based on actual error handling code in the codebase.

Signed-off-by: localai-bot <localai-bot@noreply.github.com>
Co-authored-by: localai-bot <localai-bot@noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants