Skip to content

scan-health: support custom status codes as healthy #3

Description

@mataeil

Some APIs return non-200 status codes for healthy responses (e.g., 204 No Content, 302 redirect for auth-gated endpoints).

Currently scan-health treats only HTTP 200 as healthy. This should be configurable per endpoint.

Proposed config change:
health_endpoints could accept objects instead of strings:
{ "url": "https://api.example.com/health", "healthy_codes": [200, 204] }

String entries would continue to work (default to [200]).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions