mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +01:00
Include name/alias of already existing (pending) contact in error
This commit is contained in:
@@ -118,6 +118,14 @@ Until it is completed, a pending contact is returned as JSON:
|
||||
|
||||
Possible errors when adding a pending contact are:
|
||||
|
||||
#### 400: Pending contact's link is invalid
|
||||
|
||||
```json
|
||||
{
|
||||
"error": "INVALID_LINK"
|
||||
}
|
||||
```
|
||||
|
||||
#### 400: Pending contact's handshake public key is invalid
|
||||
|
||||
```json
|
||||
@@ -147,7 +155,8 @@ when this happens:
|
||||
|
||||
```json
|
||||
{
|
||||
"error": "CONTACT_EXISTS"
|
||||
"error": "CONTACT_EXISTS",
|
||||
"remoteAuthorName": "Bob"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -165,7 +174,8 @@ possible attack.
|
||||
|
||||
```json
|
||||
{
|
||||
"error": "PENDING_EXISTS"
|
||||
"error": "PENDING_EXISTS",
|
||||
"pendingContactAlias": "Alice"
|
||||
}
|
||||
```
|
||||
-----------
|
||||
|
||||
Reference in New Issue
Block a user