Query parameter metrics in grafana

In prometheus and grafana what is the query parameter metrics where the responce code is not 200OK and it should send an email alert