diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-07 07:14:03 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-07 12:42:24 +0000 |
commit | f272cb4c51cb2bb3752269faf431bcf4bfbc0686 (patch) | |
tree | 4183714fffacb78cd451ebd051d7321a368c128b /protocol.txt | |
parent | 7df3e9fa87497bc65b454dca79f6f4fc133fd24b (diff) | |
download | aconf-f272cb4c51cb2bb3752269faf431bcf4bfbc0686.tar.bz2 aconf-f272cb4c51cb2bb3752269faf431bcf4bfbc0686.tar.xz |
forward relevant error messages to client
Diffstat (limited to 'protocol.txt')
-rw-r--r-- | protocol.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/protocol.txt b/protocol.txt index 018006a..0d699f3 100644 --- a/protocol.txt +++ b/protocol.txt @@ -75,3 +75,22 @@ req: POST /config/<obj_path>/<action> resp: action-specific JSON - for time-consuming actions, can return multiple JSON documents, each containing a status update + + +Use of HTTP status codes: + +2xx Success + +400 Bad request + resp: plain text error message + +401 Authentication error + +409 Concurrent modification + resp: JSON list of objects modified by a concurrent transaction + +422 Semantic error + resp: JSON object mapping paths to object-specific lists of + validation error messages + +500 Server error |