---
title: RequestError
framework: CKTool JS
role: symbol
role_heading: Structure
platforms: [cktool js 1.2.15+]
path: cktooljs/requesterror
---

# RequestError

An object that represents a general error from the service.

## Declaration

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

## Overview

Overview In JavaScript, this is a plain object with properties as described. In TypeScript, this type is imported in the following way: import type { RequestError } from "@apple/cktool.database";

## Topics

### Instance Properties

- [code](cktooljs/requesterror/code.md)
- [detailedMessage](cktooljs/requesterror/detailedmessage.md)
- [message](cktooljs/requesterror/message.md)
- [reason](cktooljs/requesterror/reason.md)
- [requestUuid](cktooljs/requesterror/requestuuid.md)
- [retryAfterSeconds](cktooljs/requesterror/retryafterseconds.md)

## See Also

### Database Errors

- [AuthenticationRequiredError](cktooljs/authenticationrequirederror.md)
- [CKDBBatchDeleteError](cktooljs/ckdbbatchdeleteerror.md)
