Code

object Code(source)

Properties

Link copied to clipboard
const val ASSERTION_FAILED: Int = 1

Internal assertion failure

Link copied to clipboard
const val BAD_DOC_ID: Int = 29

Invalid document ID

Link copied to clipboard
const val BAD_REVISION_ID: Int = 4

An attempt was made to insert a document with an invalid revision ID This is frequently caused by an invalid revision ID written directly into Sync Gateway via the REST API

Link copied to clipboard
const val BUSY: Int = 16

Database is busy / locked

Link copied to clipboard
const val CANT_OPEN_FILE: Int = 11

Database file can't be opened; may not exist

Link copied to clipboard
const val CANT_UPGRADE_DATABASE: Int = 30

Database can't be upgraded (might be unsupported dev version)

Link copied to clipboard
const val CONFLICT: Int = 8

Document update conflict

Link copied to clipboard
const val CORRUPT_DATA: Int = 15

Data is corrupted

Link copied to clipboard
const val CORRUPT_REVISION_DATA: Int = 5

Revision contains corrupted/unreadable data

Link copied to clipboard
const val CRYPTO: Int = 22

Encryption / Decryption error

Link copied to clipboard
const val DATABASE_TOO_NEW: Int = 28

Database file format is newer than what I can open

Link copied to clipboard
const val DATABASE_TOO_OLD: Int = 27

Database file format is older than what I can open

Link copied to clipboard
const val DNS_FAILURE: Int

DNS Lookup failed

Link copied to clipboard

Missing or incorrect user authentication

Link copied to clipboard
const val HTTP_BASE: Int = 10000
Link copied to clipboard
const val HTTP_CONFLICT: Int

Update conflict

Link copied to clipboard

Data is too large to upload

Link copied to clipboard
const val HTTP_FORBIDDEN: Int

User doesn't have permission to access resource

Link copied to clipboard
Link copied to clipboard

Something's wrong with the server

Link copied to clipboard
const val HTTP_NOT_FOUND: Int

Resource not found

Link copied to clipboard

Unimplemented server functionality

Link copied to clipboard

HTTP proxy requires authentication

Link copied to clipboard

Service is down temporarily

Link copied to clipboard
const val INVALID_PARAMETER: Int = 9

Invalid function parameter or struct value

Link copied to clipboard
const val INVALID_QUERY: Int = 23

Invalid query

Link copied to clipboard
const val INVALID_QUERY_PARAM: Int = 25

Unknown query param name, or param number out of range

Link copied to clipboard

The client was redirected to an invalid location by the server

Link copied to clipboard
const val INVALID_URL: Int

The provided URL is not valid

Link copied to clipboard
const val IO_ERROR: Int = 12

File I/O error

Link copied to clipboard
const val MEMORY_ERROR: Int = 13

Memory allocation failed (out of memory?)

Link copied to clipboard
const val MISSING_INDEX: Int = 24

No such index, or query requires a nonexistent index

Link copied to clipboard
const val NETWORK_OFFSET: Int = 5000
Link copied to clipboard
const val NOT_A_DATABASE_FILE: Int = 20

File is not a database or encryption key is wrong

Link copied to clipboard
const val NOT_FOUND: Int = 7

Document not found

Link copied to clipboard
const val NOT_IN_TRANSACTION: Int = 17

Function cannot be called while in a transaction

Link copied to clipboard
const val NOT_OPEN: Int = 6

Database/KeyStore is not open

Link copied to clipboard
const val NOT_WRITABLE: Int = 14

File is not writeable

Link copied to clipboard
const val REMOTE_ERROR: Int = 26

Unknown error from remote server

Link copied to clipboard
const val TIMEOUT: Int

Socket timeout during an operation

Link copied to clipboard

The provided TLS certificate has expired

Link copied to clipboard

Self-signed cert, or unknown anchor cert

Link copied to clipboard

Cert isn't trusted for other reason

Link copied to clipboard

Client certificate was rejected by the server

Link copied to clipboard

A required client certificate was not provided

Link copied to clipboard

Failure during TLS handshake process

Link copied to clipboard

Too many HTTP redirects for the HTTP client to handle

Link copied to clipboard
const val TRANSACTION_NOT_CLOSED: Int = 18

Database can't be closed while a transaction is open

Link copied to clipboard
const val UNEXPECTED_ERROR: Int = 10

Internal unexpected C++ exception

Link copied to clipboard
const val UNIMPLEMENTED: Int = 2

An unimplemented API call

Link copied to clipboard
const val UNKNOWN_HOST: Int

DNS server doesn't know the hostname

Link copied to clipboard
const val UNSUPPORTED: Int = 19

Operation not supported on this database

Link copied to clipboard

Unsupported encryption algorithm

Link copied to clipboard

TCP socket closed unexpectedly

Link copied to clipboard

Unparseable WebSocket message

Link copied to clipboard

Can't fulfill request due to "unexpected condition"

Link copied to clipboard

Exceptions during P2P replication that are permanent will be assigned this error code

Link copied to clipboard

Exceptions during P2P replication that are transient will be assigned this error code

Link copied to clipboard

Message payload cannot be handled

Link copied to clipboard

Peer has to close, e.g. because host app is quitting

Link copied to clipboard

Message is too large for peer to handle

Link copied to clipboard

Peer doesn't provide a necessary extension

Link copied to clipboard

Not an actual error, but serves as the lower bound for WebSocket related errors

Link copied to clipboard

Message violated unspecified policy

Link copied to clipboard

Protocol violation: invalid framing data

Link copied to clipboard
Link copied to clipboard
const val WEB_SOCKET_USER: Int
Link copied to clipboard
const val WRONG_FORMAT: Int = 21

Database exists but not in the format/storage requested