[PR #14737] docs: document API error response format #25352

Open
opened 2026-04-19 18:09:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14737
Author: @mvanhorn
Created: 3/9/2026
Status: 🔄 Open

Base: mainHead: osc/9905-docs-api-error-responses


📝 Commits (1)

  • f87f9af docs: document API error response format

📊 Changes

1 file changed (+41 additions, -0 deletions)

View changed files

📝 docs/api.md (+41 -0)

📄 Description

Fixes #9905

Summary

  • Added documentation for API error response format
  • Documented the standard {"error": "message"} JSON format
  • Listed common HTTP status codes and their meanings
  • Added example error responses

This helps developers building integrations handle API errors properly.

This contribution was developed with AI assistance (Claude Code).


🔄 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/ollama/ollama/pull/14737 **Author:** [@mvanhorn](https://github.com/mvanhorn) **Created:** 3/9/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `osc/9905-docs-api-error-responses` --- ### 📝 Commits (1) - [`f87f9af`](https://github.com/ollama/ollama/commit/f87f9af2771ead3637af4cef87932dd282e05607) docs: document API error response format ### 📊 Changes **1 file changed** (+41 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/api.md` (+41 -0) </details> ### 📄 Description Fixes #9905 ## Summary - Added documentation for API error response format - Documented the standard `{"error": "message"}` JSON format - Listed common HTTP status codes and their meanings - Added example error responses This helps developers building integrations handle API errors properly. This contribution was developed with AI assistance (Claude Code). --- <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-19 18:09:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25352