---
title: API Testing Errors
description: Detailed description of API test errors
breadcrumbs: Docs > Synthetic Testing and Monitoring > API Testing > API Testing Errors
---

# API Testing Errors

## HTTP errors{% #http-errors %}

The most common HTTP errors include the following:

| Error                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AUTHENTICATION_ERROR`            | Synthetic Monitoring automatically disables test retries when authentication failures occur. This safety measure remains in effect until you update the test with valid credentials. This prevents unnecessary test executions that would generate false alerts and increase billable usage.                                                                                                                                                                            |
| `CONNREFUSED`                     | No connection could be made because the target machine actively refused it.                                                                                                                                                                                                                                                                                                                                                                                             |
| `CONNRESET`                       | The connection was abruptly closed by the remote server. Possible causes include the web server encountering an error or crashing while responding, or loss of connectivity of the web server.                                                                                                                                                                                                                                                                          |
| `DNS`                             | DNS entry not found for the test URL. Possible causes include misconfigured test URL or the wrong configuration of your DNS entries.                                                                                                                                                                                                                                                                                                                                    |
| `Error performing HTTP/2 request` | The request could not be performed. This may occur when a remote server's HTTP support is inconsistent. For example, suppose you run a test that reaches an endpoint on a server that supports HTTP 2. On the next run, if the test comes across the same endpoint on a server that only has HTTP 1.1 support, the test fails to establish an HTTP 2 connection and returns an error. In this scenario, switching to HTTP/1.1 prevents the error.                       |
| `INVALID_REQUEST`                 | The configuration of the test is invalid (for example, a typo in the URL).                                                                                                                                                                                                                                                                                                                                                                                              |
| `SSL`                             | The SSL connection couldn't be performed. See the SSL errors section for more information.                                                                                                                                                                                                                                                                                                                                                                              |
| `TIMEOUT`                         | The request couldn't be completed in a reasonable time. There are two types of timeout errors:**Request timeout**: The request duration exceeded the test's configured timeout (default: 60s). The network waterfall displays only the completed stages. For example, if only `Total response time` appears, the timeout occurred during DNS resolution.**Overall timeout**: The combined test duration (request + assertions) exceeded the maximum allowed time (60s). |
| `MALFORMED_RESPONSE`              | The remote server responded with a payload that does not comply with HTTP specifications. This error can happen when remote servers differ in their HTTP support. To prevent issues, run tests with a consistent HTTP version: either HTTP/2 (if available) or HTTP/1.1.                                                                                                                                                                                                |
| `INCORRECT_ASSERTION`             | The expected value of the assertion does not match the actual value. For example, when asserting on an HTTP response status code, if you expect `200` but the response returns `400`, the INCORRECT_ASSERTION error is thrown.                                                                                                                                                                                                                                          |

## SSL errors{% #ssl-errors %}

SSL errors can occur during an API test run. They are different from failing assertions on SSL tests and can occur on all types of API tests.

| Error                                | Description                                                                                                                                                                                                                                                                                                   |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CERT_CHAIN_TOO_LONG`                | The certificate chain length is greater than the supplied maximum depth.                                                                                                                                                                                                                                      |
| `CERT_HAS_EXPIRED`                   | The certificate is expired.                                                                                                                                                                                                                                                                                   |
| `CERT_NOT_YET_VALID`                 | The certificate is not valid until a future date.                                                                                                                                                                                                                                                             |
| `CERT_REJECTED`                      | The root CA is marked to reject the purpose specified.                                                                                                                                                                                                                                                        |
| `CERT_REVOKED`                       | The certificate was revoked by the issuer.                                                                                                                                                                                                                                                                    |
| `CERT_UNTRUSTED`                     | The root CA is not marked as trusted for its intended purpose.                                                                                                                                                                                                                                                |
| `CERT_SIGNATURE_FAILURE`             | The signature of the certificate is not valid.                                                                                                                                                                                                                                                                |
| `CRL_HAS_EXPIRED`                    | The certificate revocation list (CRL) has expired.                                                                                                                                                                                                                                                            |
| `CRL_NOT_YET_VALID`                  | The certificate revocation list (CRL) is not valid until a future date.                                                                                                                                                                                                                                       |
| `CRL_SIGNATURE_FAILURE`              | The CRL signature of the certificate is not valid.                                                                                                                                                                                                                                                            |
| `DEPTH_ZERO_SELF_SIGNED_CERT`        | The passed certificate is self-signed and the same certificate cannot be found in the list of trusted certificates.                                                                                                                                                                                           |
| `ERROR_IN_CERT_NOT_AFTER_FIELD`      | There is a format error in the notAfter field in the certificate.                                                                                                                                                                                                                                             |
| `ERROR_IN_CERT_NOT_BEFORE_FIELD`     | There is a format error in the notBefore field in the certificate.                                                                                                                                                                                                                                            |
| `ERROR_IN_CRL_LAST_UPDATE_FIELD`     | The CRL lastUpdate field contains an invalid time.                                                                                                                                                                                                                                                            |
| `ERROR_IN_CRL_NEXT_UPDATE_FIELD`     | The CRL nextUpdate field contains an invalid time.                                                                                                                                                                                                                                                            |
| `INVALID_CA`                         | A CA certificate is not valid because it is not a CA or its extensions are not consistent with the intended purpose.                                                                                                                                                                                          |
| `INVALID_PURPOSE`                    | The certificate that was provided cannot be used for its intended purpose.                                                                                                                                                                                                                                    |
| `OUT_OF_MEM`                         | An error occurred while allocating memory.                                                                                                                                                                                                                                                                    |
| `PATH_LENGTH_EXCEEDED`               | The basicConstraints pathlength parameter was exceeded.                                                                                                                                                                                                                                                       |
| `SELF_SIGNED_CERT_IN_CHAIN`          | A self-signed certificate exists in the certificate chain. The certificate chain can be built using the untrusted certificates, but the root CA cannot be found locally.                                                                                                                                      |
| `UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY` | The public key in the certificate cannot be read.                                                                                                                                                                                                                                                             |
| `UNABLE_TO_DECRYPT_CERT_SIGNATURE`   | Unable to decrypt the signature of the certificate.                                                                                                                                                                                                                                                           |
| `UNABLE_TO_DECRYPT_CRL_SIGNATURE`    | The CRL signature cannot be decrypted. (The actual signature value cannot be determined.)                                                                                                                                                                                                                     |
| `UNABLE_TO_GET_CRL`                  | The certificate revocation list (CRL) is not found.                                                                                                                                                                                                                                                           |
| `UNABLE_TO_GET_ISSUER_CERT`          | Unable to find the certificate for one of the certificate authorities (CAs) in the signing hierarchy, and that CA is not trusted by the local application. For example, this error may be thrown when the self-signed root CA, but not the intermediate CA, is missing from the list of trusted certificates. |
| `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`  | The issuer certificate of a locally found certificate is not found. This usually means that the list of trusted certificates is not complete. For example, this error may be thrown when the self-signed root CA and intermediate CA are both missing from the list of trusted certificates.                  |
| `UNABLE_TO_VERIFY_LEAF_SIGNATURE`    | No signatures are verified because the certificate chain contains only one certificate, which is not self-signed, and the issuer is not trusted.                                                                                                                                                              |

## DNS errors{% #dns-errors %}

The most common DNS errors include the following:

| Error             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CONNRESET`       | The connection was abruptly closed by the remote server. Possible causes include the web server encountering an error or crashing while responding, or loss of connectivity of the web server.                                                                                                                                                                                                                                                                          |
| `DNS`             | DNS entry not found for the test URL. Possible causes include misconfigured test URL or the wrong configuration of your DNS entries.                                                                                                                                                                                                                                                                                                                                    |
| `INVALID_REQUEST` | The configuration of the test is invalid (for example, a typo in the URL).                                                                                                                                                                                                                                                                                                                                                                                              |
| `TIMEOUT`         | The request couldn't be completed in a reasonable time. There are two types of timeout errors:**Request timeout**: The request duration exceeded the test's configured timeout (default: 60s). The network waterfall displays only the completed stages. For example, if only `Total response time` appears, the timeout occurred during DNS resolution.**Overall timeout**: The combined test duration (request + assertions) exceeded the maximum allowed time (60s). |

## TCP errors{% #tcp-errors %}

The most common TCP errors include the following:

| Error             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CONNRESET`       | The connection was abruptly closed by the remote server. Possible causes include the web server encountering an error or crashing while responding, or loss of connectivity of the web server.                                                                                                                                                                                                                                                                          |
| `DNS`             | DNS entry not found for the test URL. Possible causes include misconfigured test URL or the wrong configuration of your DNS entries.                                                                                                                                                                                                                                                                                                                                    |
| `INVALID_REQUEST` | The configuration of the test is invalid (for example, a typo in the URL).                                                                                                                                                                                                                                                                                                                                                                                              |
| `TIMEOUT`         | The request couldn't be completed in a reasonable time. There are two types of timeout errors:**Request timeout**: The request duration exceeded the test's configured timeout (default: 60s). The network waterfall displays only the completed stages. For example, if only `Total response time` appears, the timeout occurred during DNS resolution.**Overall timeout**: The combined test duration (request + assertions) exceeded the maximum allowed time (60s). |

## UDP errors{% #udp-errors %}

The most common UDP errors include the following:

| Error             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `CONNRESET`       | The connection was abruptly closed by the remote server. Possible causes include the web server encountering an error or crashing while responding, or loss of connectivity of the web server.                                                                                                                                                                                                                                                                          |
| `DNS`             | DNS entry not found for the test URL. Possible causes include misconfigured test URL or the wrong configuration of your DNS entries.                                                                                                                                                                                                                                                                                                                                    |
| `INVALID_REQUEST` | The configuration of the test is invalid (for example, a typo in the URL).                                                                                                                                                                                                                                                                                                                                                                                              |
| `TIMEOUT`         | The request couldn't be completed in a reasonable time. There are two types of timeout errors:**Request timeout**: The request duration exceeded the test's configured timeout (default: 60s). The network waterfall displays only the completed stages. For example, if only `Total response time` appears, the timeout occurred during DNS resolution.**Overall timeout**: The combined test duration (request + assertions) exceeded the maximum allowed time (60s). |

## ICMP errors{% #icmp-errors %}

The most common ICMP errors include the following:

| Error | Description                                                                                                                          |
| ----- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `DNS` | DNS entry not found for the test URL. Possible causes include misconfigured test URL or the wrong configuration of your DNS entries. |

## gRPC errors{% #grpc-errors %}

The most common gRPC errors include the following:

| Error                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `gRPC specific errors` | gRPC has a list of specific status codes that can be found in the [official gRPC documentation](https://grpc.github.io/grpc/core/md_doc_statuscodes.html).                                                                                                                                                                                                                                                                                                              |
| `CONNRESET`            | The connection was abruptly closed by the remote server. Possible causes include the web server encountering an error or crashing while responding, or losing connectivity to the web server.                                                                                                                                                                                                                                                                           |
| `DNS`                  | DNS entry not found for the test URL. Possible causes include a misconfigured test URL or the wrong configuration of your DNS entries.                                                                                                                                                                                                                                                                                                                                  |
| `INVALID_REQUEST`      | The configuration of the test is invalid (for example, a typo in the URL).                                                                                                                                                                                                                                                                                                                                                                                              |
| `SSL`                  | The SSL connection couldn't be performed. See the SSL errors section for more information.                                                                                                                                                                                                                                                                                                                                                                              |
| `TIMEOUT`              | The request couldn't be completed in a reasonable time. There are two types of timeout errors:**Request timeout**: The request duration exceeded the test's configured timeout (default: 60s). The network waterfall displays only the completed stages. For example, if only `Total response time` appears, the timeout occurred during DNS resolution.**Overall timeout**: The combined test duration (request + assertions) exceeded the maximum allowed time (60s). |

## WebSocket errors{% #websocket-errors %}

The most common WebSocket errors include the following:

| Error             | Description                                                                                                                                                                                      |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `CONNRESET`       | The connection was abruptly closed by the remote server. Possible causes include the web server encountering an error or crashing while responding, or loss of connectivity of the web server.   |
| `DNS`             | DNS entry not found for the test URL. Possible causes include misconfigured test URL or the wrong configuration of your DNS entries.                                                             |
| `INVALID_REQUEST` | The configuration of the test is invalid (for example, a typo in the URL).                                                                                                                       |
| `SSL`             | The SSL connection couldn't be performed. See the SSL errors section for more information.                                                                                                       |
| `WEBSOCKET`       | The WebSocket connection was closed or cannot be opened.**WEBSOCKET: Received message longer than the maximum supported length**: The response message length exceeds the maximum length (50kb). |
