Inverting a Synthetics Check

Hello together,

we are currently investigating how we can prevent us from making a specific URL available. The background is that in our application we can enable a profiler that would be available under a specific URL. We would like to have a synthetics check, that verifies that this URL is NOT reachable. so a 404 would be correct and a 200 response would be an error.

Is there a way to reach this with New Relic Synthetics?


Hi, @a.kiefer: Sure, use an API test to send a GET request to the URL, and assert that response.statusCode == 404.


Thanks for the fast reply, I was not thinking of the API in this case, but the solution works like a charm!!! Thank You!!!

1 Like