# Custom alert for response code

**URL:** <https://community.dynatrace.com/t/custom-alert-for-response-code/48136>\
**Category:** Alerting\
**Tags:** problems-classic\
**Created:** [October 4, 2024, 7:18am UTC](https://community.dynatrace.com/t/custom-alert-for-response-code/48136 "2024-10-04T07:18:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suryansh21](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@suryansh21](https://community.dynatrace.com/u/suryansh21)\
**Post date:** [October 4, 2024, 7:18am UTC](https://community.dynatrace.com/t/custom-alert-for-response-code/48136/1 "2024-10-04T07:18:21Z")

</div>

My clients wants alerts only for the response code other than 2xx, they don’t want any alert related to 2xx . Do we have any option that alert will be generated only when the response code is other than 2xx. And they also want alert for Full GC. please help me in configuring this.

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 4, 2024, 8:27am UTC](https://community.dynatrace.com/t/custom-alert-for-response-code/48136/2 "2024-10-04T08:27:13Z")

</div>

Hi&nbsp;[@suryansh21](https://community.dynatrace.com/user/80497)&nbsp;, you can setup the&nbsp;HTTP failure detection from the below

> **[Configure service failure detection in Service Detection v1](https://docs.dynatrace.com/docs/observe/application-observability/services/service-detection/service-detection-v1/configure-service-failure-detection)**
>
> Discover which service error types Dynatrace automatically detects and learn how to adjust failure detection settings to meet your specific requirements.

 ![p_devulapalli_0-1728030306179.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/2/127195096d979849edb487231ebf45b00223d172.png)

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 4, 2024, 8:37am UTC](https://community.dynatrace.com/t/custom-alert-for-response-code/48136/3 "2024-10-04T08:37:24Z")

</div>

Btw, for GC I think Davis does alert for any deviations, alternatively you can look at metric events for additional alerts

> **[Out-of-memory (OOM) and out-of-threads (OOT) events and alerting](https://docs.dynatrace.com/docs/ingest-from/technology-support/application-software/java/set-up-event-and-memory-alerting)**
>
> Set up out-of-memory (OOM) and out-of-threads (OOT) events and alerting in Dynatrace.
