mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
docs: update error codes in api document
This commit is contained in:
parent
510213b1c2
commit
13c20b1b64
@ -206,7 +206,7 @@ If the TTL has expired, the key will have been deleted, and you will be returned
|
|||||||
"cause": "/foo",
|
"cause": "/foo",
|
||||||
"errorCode": 100,
|
"errorCode": 100,
|
||||||
"index": 6,
|
"index": 6,
|
||||||
"message": "Key Not Found"
|
"message": "Key not found"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ The error code explains the problem:
|
|||||||
"cause": "/foo",
|
"cause": "/foo",
|
||||||
"errorCode": 105,
|
"errorCode": 105,
|
||||||
"index": 39776,
|
"index": 39776,
|
||||||
"message": "Already exists"
|
"message": "Key already exists"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -474,7 +474,7 @@ This will try to compare the previous value of the key and the previous value we
|
|||||||
"cause": "[two != one]",
|
"cause": "[two != one]",
|
||||||
"errorCode": 101,
|
"errorCode": 101,
|
||||||
"index": 8,
|
"index": 8,
|
||||||
"message": "Test Failed"
|
"message": "Compare failed"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user