Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/v1/catalog/service/:service_name 404 #20791

Open
sbaildon opened this issue Mar 2, 2024 · 0 comments
Open

/v1/catalog/service/:service_name 404 #20791

sbaildon opened this issue Mar 2, 2024 · 0 comments

Comments

@sbaildon
Copy link

sbaildon commented Mar 2, 2024

Feature Description

Return 404 when service_name does not exist in catalogue query /v1/catalog/service/:service_ name

As of today, consul returns 200 whether the service exists or not — returning an empty result set, [], if the service isn't present

Use Case(s)

I want to handle the presence or absence of a service differently, and using the HTTP status code would be easier than matching on an empty result set

@sbaildon sbaildon changed the title /v1/catalog/service/:service_id 404 /v1/catalog/service/:service_name 404 Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant