PingDirectory

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. Refer to 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. Refer to the error message for more info.

503 Service Not Available

The metric query service is temporary offline. Refer to the error message for more info.

Example

The following is a sample response body.

<?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>