curl and jq 8 · Debugging and reliability
Fail on HTTP errors
Return a non-zero exit code on 4xx and 5xx responses, and print the body.
curl --fail-with-body https://api.example.com/users
Official curl and jq 8 documentation
More debugging and reliability commands
- See the whole exchange
- Retry on failure
- Set a timeout
- Skip TLS certificate checks
- Test a host before DNS changes
All debugging and reliability commands · curl and jq 8 cheatsheet