mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-20 01:27:52 +08:00
52 lines
970 B
Rust
52 lines
970 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone, Copy)]
|
|
pub enum Code {
|
|
// index related error
|
|
CreateIndex,
|
|
IndexAlreadyExists,
|
|
IndexNotFound,
|
|
InvalidIndexUid,
|
|
|
|
// invalid state error
|
|
InvalidState,
|
|
MissingPrimaryKey,
|
|
PrimaryKeyAlreadyPresent,
|
|
|
|
MaxFieldsLimitExceeded,
|
|
MissingDocumentId,
|
|
InvalidDocumentId,
|
|
|
|
Filter,
|
|
Sort,
|
|
|
|
BadParameter,
|
|
BadRequest,
|
|
DatabaseSizeLimitReached,
|
|
DocumentNotFound,
|
|
Internal,
|
|
InvalidGeoField,
|
|
InvalidRankingRule,
|
|
InvalidStore,
|
|
InvalidToken,
|
|
MissingAuthorizationHeader,
|
|
NoSpaceLeftOnDevice,
|
|
DumpNotFound,
|
|
TaskNotFound,
|
|
PayloadTooLarge,
|
|
RetrieveDocument,
|
|
SearchDocuments,
|
|
UnsupportedMediaType,
|
|
|
|
DumpAlreadyInProgress,
|
|
DumpProcessFailed,
|
|
|
|
InvalidContentType,
|
|
MissingContentType,
|
|
MalformedPayload,
|
|
MissingPayload,
|
|
|
|
MalformedDump,
|
|
UnretrievableErrorCode,
|
|
}
|