fix: log and display API errors in dashboard (#40)
authorStefan Gasser <redacted>
Fri, 16 Jan 2026 22:30:36 +0000 (23:30 +0100)
committerGitHub <redacted>
Fri, 16 Jan 2026 22:30:36 +0000 (23:30 +0100)
commit999d62f3eb0ba9458461184819ec74422be3c38e
tree5d7c4eee5ffcdad49153e626bbe269697223f412
parentee804b0d9fe20e88b8bf9d537e60141a2c2844d5
fix: log and display API errors in dashboard (#40)

Fixes #35

- Add LLMError class to preserve upstream status code and body
- Add status_code and error_message columns to request logs
- Add Status column to dashboard with OK/error badges
- Pass through upstream errors (429, 401, etc.) with original status
- Return OpenAI-compatible JSON format for all error responses
- Set X-PasteGuard headers consistently via Hono context
src/routes/proxy.ts
src/services/llm-client.ts
src/services/logger.ts
src/views/dashboard/page.tsx
git clone https://git.99rst.org/PROJECT