Load Testing · Junior · Question 23 of 75
What does the k6 metric http_req_failed measure by default?
- 1The rate of requests with an error status (4xx/5xx) or network error
- 2The number of virtual users that crashed with a script error
- 3The number of checks that returned false during the run
Show the answer
Correct answer: The rate of requests with an error status (4xx/5xx) or network error
Explanation
By default, statuses 200-399 count as success. You can change the expected statuses with http.setResponseCallback().