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.

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>