Created
September 7, 2022 22:53
-
-
Save namp10010/9d6acbaaee200c6b2844bb83500521aa to your computer and use it in GitHub Desktop.
curl check status code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -X GET -s -o /dev/null -w '%{http_code}' http://localhost:8080/healthz` -eq 200 || exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment