User GuidesAPI ReferenceRelease Notes
Doc HomeHelp CenterLog In
API Reference

Error Handling

Tamr Core API calls return conventional HTTP success or error status codes.

On success, calls return a response code of 200 and the expected object.

Error Types

For errors, the API provides information about what went wrong. All errors are returned as JSON objects. An example error response follows:

{
  "status": 404,
  "class": "com.tamr.common.except.ResourceNotFoundException",
  "message": "No Operation found with ID [1000000]",
  "stackTrace": [
    "com.tamr.common.except.ResourceNotFoundException::withFormattedMessage::14",
    "com.tamr.unify.pub.api.services.OperationService::fetchOperation::37",
    "com.tamr.unify.pub.api.v1.resources.OperationResource::getOperation::68",
    "sun.reflect.NativeMethodAccessorImpl::invoke0::-2"
  ],
  "causedBy": null,
  "service": "Public API"
}

The following table describes the data and metadata for an error.

KeyValue Description
statusThe HTTP status code of the error returned. See HTTP Status Codes.
classThe class that threw the error.
messageA short description of the error.
stackTraceThe series of calls made by the endpoint.
causedByA short message indicating why the error occured.
serviceThe microservice that caused the error.

HTTP Status Codes

Status CodeText
400Bad Request
401Unauthorized
404Not Found
409Conflict
422Unprocessable Entity
500Internal Server Error