dockerize icon indicating copy to clipboard operation
dockerize copied to clipboard

Custom http response status code

Open serragnoli opened this issue 6 years ago • 3 comments

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.

serragnoli avatar Dec 18 '19 18:12 serragnoli

I'm really interested in this feature

pitazzo avatar Apr 21 '21 15:04 pitazzo

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. ;)

mwmahlberg avatar Jul 13 '21 19:07 mwmahlberg

@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.

pitazzo avatar Jul 13 '21 20:07 pitazzo