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

Add --check-status flag for TReq exit with an error if the HTTP status code indicates one. #36

Open
talis-fb opened this issue Mar 2, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers 🐇 Small

Comments

@talis-fb
Copy link
Owner

talis-fb commented Mar 2, 2024

By default, TReq exits with 0 when no network or other fatal errors occur. This flag instructs TReq to also check the HTTP status code and exit with an error if the status indicates one.

When the server replies with a 4xx (Client Error) or 5xx (Server Error) status code, TReq exits with 4 or 5 respectively.

@talis-fb talis-fb added enhancement New feature or request good first issue Good for newcomers 🐇 Small labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers 🐇 Small
Projects
Status: No status
Development

No branches or pull requests

1 participant