# Resolve HTTP Monitor Error Health Status Codes in Dynatrace

**URL:** <https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108>\
**Category:** Troubleshooting\
**Tags:** http-monitor, synthetic-monitoring\
**Created:** [June 12, 2023, 6:03am UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108 "2023-06-12T06:03:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [June 12, 2023, 6:03am UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108/1 "2023-06-12T06:03:16Z")

</div>

_Summary:&nbsp;HTTP monitors in Dynatrace may return health status codes indicating connectivity or configuration issues. This guide lists common error codes, explains their meaning, and provides steps to restore monitoring accuracy._

## Where to find HTTP Monitor Error/ Health Status Codes&nbsp;

HTTP Monitor executions don’t always succeed. In addition to the HTTP response codes that a request can return, there are several Dynatrace error codes.

A summary of the HTTP Monitor error codes for a period can be seen in the [HTTP Monitor details\> Failed Requests card](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/analysis-and-alerting/synthetic-details-for-http-monitors-classic#failed-requests).

 ![HannahM_2-1686150676387.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/c/cc8b06f200ec690b9e0a7d22c1c05da65e321c1b.png)

You can also, find the error code for the most recent failed, successful and on-demand executions in&nbsp;[**Analyze last failed execution**](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/analysis-and-alerting/synthetic-details-for-http-monitors-classic#analyze-last-execution). You can filter the JSON to just show the error. In the JSON the error code is called HealthStatusCode and the error description is HealthStatus.

 ![HannahM_3-1686151110064.png](https://global.discourse-cdn.com/dynatrace/original/1X/e0d34d1e7de1cfa3f687a5b7cd4edab89d1d24bf.png)

## Error/Health Status Codes and Suggested Actions

| Error/Health Status Code | Error Description/ Health Status | Suggested Actions |
| 0 | Healthy | |
| 1 | SSL Communication error | Check vuc-http-execution.log for more details. |
| 2 | DNS query timeout | Check vuc-http-execution.log for more details. |
| 3 | Unknown Host | Check nslookup from the ActiveGate. |
| 4 | Unexpected Error | Check vuc-http-execution.log and vuc-http.log for more info |
| 5 | Redirects not allowed | |
| 6 | Invalid Code | Status Code validation failed   
Check Monitor\> Settings\>HTTP Requests\> Request\> Response Status Code Verification setting |
| 7 | Script execution failed | There was a problem running one of the pre- or post-execution scripts. Some common causes are:
- typos or syntax errors
- referring to a method/ variable that hasn't been defined in the script

Check vuc-http-execution.log for more details. |
| 8 | Script Fail | Check vuc-http-execution.log for more details. |
| 12 | Http Monitor Execution Timeout | Use Adapt Request Timeout to increase up to 60s. The HTTP Monitor Advanced settings preview can be used to increase the monitor timeout. Ask your CSM or Support for more details. |
| 13 | Too many redirects | The maximum number of redirects for synthetic monitors is 10. When a monitor reaches 11 redirects, it fails with this error.&nbsp;  
Reach out to your application team to find out why there are so many redirects and reduce them.&nbsp; |
| 15 | Connection timeout | [Test connection using curl from the ActiveGate](https://community.dynatrace.com/topic/213876#toc-hId-370831897)  
Is a proxy needed?  
If a public location, is this endpoint available? Do the [public location IP addresses](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/general-information/public-synthetic-locations#ip-addresses) need to be allowlisted by the application? |
| 16 | Connection Refused | Does this endpoint require specific headers to be added?  
Private location: [Test connection using curl from the ActiveGate](https://community.dynatrace.com/topic/213876#toc-hId--978951428).&nbsp;Is a proxy needed?&nbsp;  
Public location: Is this endpoint available? Do the [public location IP addresses](https://www.dynatrace.com/support/help/platform-modules/digital-experience/synthetic-monitoring/general-information/public-synthetic-locations#ip-addresses) need to be allowlisted by the application? |
| 17 | Constraint Violated value | Response validation failed.   
Check Monitor\> Settings\>HTTP Requests\> Request\> Set rule for response validation setting |
| 18 | Unknown Method ErrorUNKNOWN\_METHOD\_ERROR | Check vuc-http-execution.log and vuc-http.log for more info.  
This occurs when a method is called in the pre-/ post- execution script that the monitor is unaware of. These are usually from third-party libraries. For these situations, you must add the code for the function into the script. Like these examples [here](https://community.dynatrace.com/topic/209462)&nbsp;and [here](https://community.dynatrace.com/topic/219868) |
| 20 | SSL Expiry warning | |
| 24 | Request Timeout | [Test connection using curl from the ActiveGate](https://community.dynatrace.com/topic/213876#toc-hId-370831897)Is a [proxy](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/private-synthetic-locations/setting-up-proxy-for-private-synthetic) needed?  
If a public location, is this endpoint available? Do the [public location IP addresses](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/general-information/public-synthetic-locations#ip-addresses) need to be allowlisted by the application? |
| 30 | Forbidden URL Error | IP resolves to localhost, which, due to security reasons, is not allowed |

## Where to find HTTP Monitor Logs

You can either download the support archive or check directly for HTTP Monitor logs on a Private location. You can find where to check [here.](https://community.dynatrace.com/topic/214478)

## What’s next

Open a chat or contact support if

- you need to check the logs for an HTTP Monitor running on a public location, or
- the issue is still not resolved after taking the above actions

**What to read next:**

📖&nbsp;&nbsp;[Synthetic Troubleshooting Map](https://community.dynatrace.com/topic/250426)

📖&nbsp;&nbsp;[Synthetic Browser Monitor Error Codes](https://community.dynatrace.com/topic/198177)

📖&nbsp;&nbsp;[How can I find which ActiveGate my HTTP Monitor execution ran on?](https://community.dynatrace.com/topic/236034)

📖&nbsp;&nbsp;[Create and configure an HTTP monitor](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/synthetic-on-grail/synthetic-app/create-and-configure-an-http-monitor)

📖&nbsp;&nbsp;[Configure HTTP monitors (classic)](https://docs.dynatrace.com/docs/shortlink/http-monitors-config)

📖&nbsp;&nbsp;[Pre- and post-execution scripts for HTTP monitors (classic)](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/http-monitors-classic/pre-and-post-scripting-for-http-monitors-classic)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 14, 2023, 3:41pm UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108/2 "2023-06-14T15:41:42Z")

</div>

Thanks for sharing this out&nbsp;[@HannahM](https://community.dynatrace.com/user/1433)

---

<div class="post-metadata">

**Author:** ![ct\_27](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ct_27/32/10499_2.png) [@ct\_27](https://community.dynatrace.com/u/ct_27)\
**Post date:** [July 14, 2023, 3:43pm UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108/3 "2023-07-14T15:43:56Z")

</div>

[@HannahM](https://community.dynatrace.com/user/1433)&nbsp; This is awesome, can this information be posted on the public documentation site? The table you created is so informative. We were just having problem #7 and we found this post while troubleshooting.&nbsp; So valuable.

---

<div class="post-metadata">

**Author:** ![nadeem\_m](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nadeem_m/32/18048_2.png) [@nadeem\_m](https://community.dynatrace.com/u/nadeem_m)\
**Post date:** [July 17, 2023, 6:15am UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108/4 "2023-07-17T06:15:30Z")

</div>

[@HannahM](https://community.dynatrace.com/user/1433)&nbsp;Very Informative!

---

<div class="post-metadata">

**Author:** ![tarjei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei/32/39196_2.png) [@tarjei](https://community.dynatrace.com/u/tarjei)\
**Post date:** [January 29, 2026, 11:09pm UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108/5 "2026-01-29T23:09:35Z")

</div>

What can be typical cause for the error number 7?

I am running some checks from a public location, so unable to check for myself.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [January 30, 2026, 2:16pm UTC](https://community.dynatrace.com/t/resolve-http-monitor-error-health-status-codes-in-dynatrace/40108/6 "2026-01-30T14:16:55Z")

</div>

For error code 7,&nbsp;Script execution failed, there was a problem running one of the pre- or post-execution scripts. Some common causes are:

- typos or syntax errors
- referring to a method/ variable that hasn’t been defined in the script

If you can’t find the error, you can open a chat or support ticket, and Dynatrace will provide the relevant log lines from the public location.
