---
title: Response codes
description: Response codes tell the user if a request was successful, in error, not found, an internal service error, or the service is not available.
component: pingdirectory
version: 9.3
page_id: pingdirectory:pingdatametrics_server_administration_guide:pd_met_response_codes
canonical_url: https://docs.pingidentity.com/pingdirectory/9.3/pingdatametrics_server_administration_guide/pd_met_response_codes.html
revdate: September 13, 2023
section_ids:
  example: Example
---

# Response codes

Response codes tell the user if a request was successful, in error, not found, an internal service error, or the service is not available.

The following response codes are available.

| Response code               | Description                                                                                |
| --------------------------- | ------------------------------------------------------------------------------------------ |
| `200 0K`                    | The request was processed successfully and the requested data returned.                    |
| `400 Bad Request`           | The request contained an error. See the error message to resolve the issue.                |
| `404 Not Found`             | The requested resource is not found or no samples are collected for the metric.            |
| `500 Internal Server Error` | An unexpected server error occurred. See the error message for more information.           |
| `503 Service Not Available` | The metric query service is temporary offline. See the error message for more information. |

## Example

The following is a sample response body.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<errorResponse xmlns="com.unboundid.directory.mon.api.v1.models">
<errors reason="unknown_data_source_id" message="There are
  no metrics defined with id connections"/>
</errorResponse>
```
