upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2022-11-10 13:14:23 -0800
committerWilliam Casarin <jb55@jb55.com>2022-11-10 13:14:23 -0800
commitc510e646d0fd5bfa56a044756182cc10ad7e494d (patch)
tree7deb2b99185264c8216d686baaf2f7c0f919c6e0
parentff26b959f8fd9ae9d72ed0f1ebf6ecc67d1fa65a (diff)
NIP-20: server errors happen!
-rw-r--r--20.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/20.md b/20.md
index 8bd7ab5..6c81cbe 100644
--- a/20.md
+++ b/20.md
@@ -27,6 +27,8 @@ The `message` SHOULD start with `pow:` if the event doesn't meet some proof-of-w
27 27
28The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. 28The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques.
29 29
30The `message` SHOULD start with `error:` if the event failed to save due to a server issue.
31
30Ephemeral events are not acknowledged with OK responses, unless there is a failure. 32Ephemeral events are not acknowledged with OK responses, unless there is a failure.
31 33
32If the event or `EVENT` command is malformed and could not be parsed, a NOTICE message SHOULD be used instead of a command result. This NIP only applies to non-malformed EVENT commands. 34If the event or `EVENT` command is malformed and could not be parsed, a NOTICE message SHOULD be used instead of a command result. This NIP only applies to non-malformed EVENT commands.
@@ -67,6 +69,10 @@ Event rejected, insufficient proof-of-work difficulty
67 69
68 ["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"] 70 ["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"]
69 71
72Event failed to save,
73
74 ["OK", "b1a649ebe8...", false, "error: could not connect to the database"]
75
70 76
71 77
72Client Handling 78Client Handling