GPT-5 finding
Inconsistent error response for gh not available (200 vs 503) across endpoints
- dashboard/app/api/auth/route.ts:33-35
- dashboard/app/api/secrets/route.ts:70-76
Clients consuming both endpoints will see different status codes and payload shapes for the same condition, complicating error handling and potentially masking failures.
Recommendation
Standardize on a consistent status code (e.g., 503) and a common response shape (e.g., include ghReady) for gh-not-available across all routes.