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

Custom http response status code #146

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

serragnoli
Copy link

Allows a user to determine an http response code to exit from the wait.
This is useful to test error scenarios where the dependencies of service may be down.

@pitazzo
Copy link

pitazzo commented Apr 21, 2021

I'm really interested in this feature

@mwmahlberg
Copy link
Contributor

Maybe I am a bit confused, but could you describe a scenario? If something is wrong, a non-2xx response code should be issued, anyway. So if the dependency responds with a non-2xx, you know there is something going on. Can you detail you use case a bit further -- I assume that may help in judging the PR. ;)

@pitazzo
Copy link

pitazzo commented Jul 13, 2021

@mwmahlberg in my case I need this feature in order to assure an order while bringing up some GraphQL microservices.
As all GraphQL operations should have an specific format (which can't be built with this tool), I can just get as answer errored response codes, different from a 2xx code. However that's enough to confirm the correct startup of the container.

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

Successfully merging this pull request may close these issues.

4 participants