diff options
| author | William Casarin <jb55@jb55.com> | 2022-11-10 13:14:23 -0800 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2022-11-10 13:14:23 -0800 |
| commit | c510e646d0fd5bfa56a044756182cc10ad7e494d (patch) | |
| tree | 7deb2b99185264c8216d686baaf2f7c0f919c6e0 | |
| parent | ff26b959f8fd9ae9d72ed0f1ebf6ecc67d1fa65a (diff) | |
NIP-20: server errors happen!
| -rw-r--r-- | 20.md | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -27,6 +27,8 @@ The `message` SHOULD start with `pow:` if the event doesn't meet some proof-of-w | |||
| 27 | 27 | ||
| 28 | The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. | 28 | The `message` SHOULD start with `rate-limited:` if the event was rejected due to rate limiting techniques. |
| 29 | 29 | ||
| 30 | The `message` SHOULD start with `error:` if the event failed to save due to a server issue. | ||
| 31 | |||
| 30 | Ephemeral events are not acknowledged with OK responses, unless there is a failure. | 32 | Ephemeral events are not acknowledged with OK responses, unless there is a failure. |
| 31 | 33 | ||
| 32 | 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. | 34 | 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 | |||
| 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 | ||
| 72 | Event failed to save, | ||
| 73 | |||
| 74 | ["OK", "b1a649ebe8...", false, "error: could not connect to the database"] | ||
| 75 | |||
| 70 | 76 | ||
| 71 | 77 | ||
| 72 | Client Handling | 78 | Client Handling |