Files
routstr-core/routstr
9qeklajc a138fcc82f feat: typed error envelope for lightning invoice endpoints
Lightning invoice errors now use the {"error": {message, type, code}}
envelope the proxy and chat-completion paths already return, with codes
specific to this path: topup_authorization_required,
topup_invalid_api_key_format, topup_api_key_not_found, invoice_not_found,
invalid_invoice_amount, invoice_creation_failed.

Invoice creation no longer collapses every failure into a 500 — an
unreachable or rate-limited mint now returns 503 with
lightning_mint_unreachable / lightning_mint_rate_limited, and a bad amount
returns 400.

Note: `detail` changes from a string to an object on these endpoints, so
clients reading it as text (including ui/lib/api/errors.ts) need updating.
2026-08-18 22:09:08 +02:00
..
2026-08-03 23:32:06 +02:00
2026-08-15 15:09:00 +02:00
2026-08-17 01:16:04 +02:00