Skip to content

Instantly share code, notes, and snippets.

@namp10010
Created September 7, 2022 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namp10010/9d6acbaaee200c6b2844bb83500521aa to your computer and use it in GitHub Desktop.
Save namp10010/9d6acbaaee200c6b2844bb83500521aa to your computer and use it in GitHub Desktop.
curl check status code
#!/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