From c510e646d0fd5bfa56a044756182cc10ad7e494d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 10 Nov 2022 13:14:23 -0800 Subject: [PATCH] NIP-20: server errors happen! --- 20.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/20.md b/20.md index 8bd7ab57..6c81cbe0 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 The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. +The `message` SHOULD start with `error:` if the event failed to save due to a server issue. + Ephemeral events are not acknowledged with OK responses, unless there is a failure. If 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 ["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"] +Event failed to save, + + ["OK", "b1a649ebe8...", false, "error: could not connect to the database"] + Client Handling