Load Testing · Junior · Question 23 of 75

What does the k6 metric http_req_failed measure by default?

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().

Further reading

Problem with a question

Load Testing · Junior · question 23

Test yourself

Take the Load Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz