You may have seen the errors that Flood displays per transaction and wondered how Flood knows whether a response was an error or not. Some of those errors are set programmatically in your script. For example, if you set up an assertion in your script to look for an element that isn't found, Flood will mark these transactions as errors.
In addition, Flood also looks at the HTTP response codes that are returned by the server. All HTTP 4xx and 5xx responses are automatically flagged as errors. At this point we're not able to change this behavior on a case-by-case basis.
So what if you want Flood to recognize another HTTP response code as an error, such as an HTTP 304 "Not Modified"?
You can modify your load test script to specifically look for this response and fail transactions that receive this response. Let's go over an example of how to do this in JMeter.
You could do this quite easily by adding a Response Assertion to the request.
This will cause JMeter to fail that request if it receives an HTTP 304 response. This is then passed on to Flood so that it shows up as an error on your dashboard.