Parse results for specific responses

Hello, I’m sure this is related to custom metrics, but I don’t know how to approach it:

I would like to parse all the non-200 and non-404 responses, allowing for specific ones to pass and all others to cause a failure.

We expect some responses to be 204s or some to fail as we develop our services.