How to create dashboard for API status codes

Such a breakdown can be easily done, follow the guide here: Create your first dashboard | Kibana Guide [8.4] | Elastic

Alerts are handled separately in the Elastic stack, check out the documentation here: Alerting | Kibana Guide [8.4] | Elastic