Skip to content

Use Proper HTTP Status Codes on DB Connection Failures #1114

@Shashankss1205

Description

@Shashankss1205
  • Gap: API endpoints return HTTP 500 when database instances are unreachable, hiding service status.
  • Relevant Files:
    • src/codegraphcontext/api/router.py
  • Task:
    • Intercept database socket errors and raise an HTTP 503 Service Unavailable exception.
  • Acceptance Criteria:
    • Service status is cleanly reported on backend drops.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
In progress
Status
Testers

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions