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 |
---|---|
|
The request was processed successfully and the requested data returned. |
|
The request contained an error. Refer to the error message to resolve the issue. |
|
The requested resource is not found or no samples are collected for the metric. |
|
An unexpected server error occurred. Refer to the error message for more info. |
|
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>