Browse Source

doc: document conflict case when adding a member

Xiang Li 11 years ago
parent
commit
a1f5df22ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Documentation/0.5/other_apis.md

+ 1 - 1
Documentation/0.5/other_apis.md

@@ -51,7 +51,7 @@ curl http://10.0.0.10:2379/v2/members
 
 Returns an HTTP 201 response code and the representation of added member with a newly generated a memberID when successful. Returns a string describing the failure condition when unsuccessful. 
 
-If the POST body is malformed an HTTP 400 will be returned. If the member exists in the cluster or existed in the cluster at some point in the past an HTTP 500(TODO: fix this) will be returned. If the cluster fails to process the request within timeout an HTTP 500 will be returned, though the request may be processed later.
+If the POST body is malformed an HTTP 400 will be returned. If the member exists in the cluster or existed in the cluster at some point in the past an HTTP 409 will be returned. If any of the given peerURLs exists in the cluster an HTTP 409 will be returned. If the cluster fails to process the request within timeout an HTTP 500 will be returned, though the request may be processed later.
 
 ### Request