coolify/routes
Andras Bacsai 4d83688896 refactor(api): return generic error messages for upstream and storage failures
Replace exception text in 5xx JSON responses with stable, action-specific
messages so API consumers get a consistent payload regardless of which
underlying client (Guzzle, PDO, filesystem) raised the exception. The
previous responses concatenated the raw upstream error, which produced
inconsistent messages and unnecessary noise for clients trying to parse
errors programmatically.

Touched endpoints:
- GET /api/v1/hetzner/{locations,server-types,images,ssh-keys}
- POST /api/v1/servers/hetzner
- DELETE /api/v1/databases/{uuid}/backups/{uuid}
- DELETE /api/v1/databases/{uuid}/backups/{uuid}/executions/{uuid}
- /download/backup/{uuid}

The RateLimitException branch and AuthenticationException flow keep their
existing curated messages.

Adds Pest coverage for the four Hetzner GET endpoints to lock the response
shape on upstream failure.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 11:50:30 +02:00
..
api.php refactor(api): validate and throttle feedback endpoint (#9653) 2026-04-19 14:50:03 +02:00
channels.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
console.php Sending e-mails and settings on Team. 2023-05-25 17:27:52 +01:00
web.php refactor(api): return generic error messages for upstream and storage failures 2026-04-20 11:50:30 +02:00
webhooks.php chore: remove unused waitlist stuff 2024-12-09 12:00:54 +01:00