status code option

Author: vanodeviumCreated Apr 4, 2024Updated Jan 14, 2025

Thanks for a great tool!

It would be very useful to be able to specify which status code I want to check.

For example, I check an endpoint that always returns 302, I specify it in the option and the tool isn't "afraid" that it is not 20x.

Something like:

bash
autocannon -c 10 --status 302 https://domain.com/return/redirect