aboutsummaryrefslogtreecommitdiff
path: root/doc/api.md
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2021-05-04 16:43:31 +0200
committerLinus Nordberg <linus@nordberg.se>2021-05-04 16:43:31 +0200
commit78c68e528517f157f29784f9dc87b3246f046e52 (patch)
treed8f48a349e5f7c98c007d64883e2b40adf0f18a2 /doc/api.md
parent866320e7cb3f8eee21f464cbc56d518f6eb66c72 (diff)
no need for encoding SPACE
Diffstat (limited to 'doc/api.md')
-rw-r--r--doc/api.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api.md b/doc/api.md
index 3a595ee..d75fe6f 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -147,10 +147,10 @@ format as the input data, i.e. as ASCII key/value pairs on the format
would send an HTTP message body consisting of `stlog-tree_size: 4711`.
The HTTP status code is 200 OK to indicate success. A different HTTP
-status code is used to indicate failure. The log should set the
-"error" key to a human-readable value that describes what went wrong.
-For example, `error=invalid+signature`, `error=rate+limit+exceeded`,
-or `error=unknown+leaf+hash`.
+status code is used to indicate failure. The log should set the value
+value for the key `error` to a human-readable string describing what
+went wrong. For example, `error: invalid signature`, `error: rate
+limit exceeded`, or `error: unknown leaf hash`.
### get-tree-head-cosigned
Returns the latest cosigned tree head. Used together with