Skip to content

Return HTTP 503 on ApiKey/Token endpoints if services are not enabled #51585

Closed
@tvernum

Description

@tvernum

See: elastic/kibana#55255

If the token service and api key services are disabled, then usage of those APIs will fail, but the only way to determine that it is caused by ES configuration is to parse the error message.

We would prefer not to have clients that depend on the error message.

From my reading of the spec, I think the 503 response status would be a reasonable fit for this failure case (I'd accept an argument for 501, but I think 503 is better).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions