<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CKToolJS",
  "identifier" : "/documentation/CKToolJS/RequestError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CKTool JS"
    ],
    "preciseIdentifier" : "struct/RequestError"
  },
  "title" : "RequestError"
}
-->

# RequestError

An object that represents a general error from the service.

```
dictionary RequestError {
	Int32 code;
	string message;
	string reason;
	string? detailedMessage;
	string? requestUuid;
	Int32? retryAfterSeconds;
};
```

## Overview

In JavaScript, this is a plain object with properties as described.

In TypeScript, this type is imported in the following way:

```javascript
import type { RequestError } from "@apple/cktool.database";
```

## Topics

### Instance Properties

[`attribute Int32 code;`](/documentation/CKToolJS/RequestError/code)

The HTTP status code for a request error.

[`attribute string? detailedMessage;`](/documentation/CKToolJS/RequestError/detailedMessage)

A string that contains any additional information about this error.

[`attribute string message;`](/documentation/CKToolJS/RequestError/message)

A string containing the code for the error that occurred.

[`attribute string reason;`](/documentation/CKToolJS/RequestError/reason)

A string that indicates the reason for the error.

[`attribute string? requestUuid;`](/documentation/CKToolJS/RequestError/requestUuid)

A unique identifier for this error.

[`attribute Int32? retryAfterSeconds;`](/documentation/CKToolJS/RequestError/retryAfterSeconds)

The suggested time to wait in seconds before trying this operation again.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)