upleb.uk

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

summaryrefslogtreecommitdiff
path: root/01.md
diff options
context:
space:
mode:
authorZig Blathazar <42387185+ZigBalthazar@users.noreply.github.com>2025-02-08 16:27:38 +0330
committerGitHub <noreply@github.com>2025-02-08 09:57:38 -0300
commit5991afb9cf7ec06866d9f9afd7ec2359109a3b2a (patch)
tree68c509364425b04b4638d7c78dea3007b11c4584 /01.md
parentab861e98c146a28e289e724d6a7453d10395257d (diff)
add restricted to standardized machine-readable prefixes (#1685)
Diffstat (limited to '01.md')
-rw-r--r--01.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/01.md b/01.md
index 5873eb6..e2b4ad4 100644
--- a/01.md
+++ b/01.md
@@ -168,9 +168,10 @@ This NIP defines no rules for how `NOTICE` messages should be sent or treated.
168 * `["OK", "b1a649ebe8...", false, "rate-limited: slow down there chief"]` 168 * `["OK", "b1a649ebe8...", false, "rate-limited: slow down there chief"]`
169 * `["OK", "b1a649ebe8...", false, "invalid: event creation date is too far off from the current time"]` 169 * `["OK", "b1a649ebe8...", false, "invalid: event creation date is too far off from the current time"]`
170 * `["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"]` 170 * `["OK", "b1a649ebe8...", false, "pow: difficulty 26 is less than 30"]`
171 * `["OK", "b1a649ebe8...", false, "restricted: not allowed to write."]`
171 * `["OK", "b1a649ebe8...", false, "error: could not connect to the database"]` 172 * `["OK", "b1a649ebe8...", false, "error: could not connect to the database"]`
172- `CLOSED` messages MUST be sent in response to a `REQ` when the relay refuses to fulfill it. It can also be sent when a relay decides to kill a subscription on its side before a client has disconnected or sent a `CLOSE`. This message uses the same pattern of `OK` messages with the machine-readable prefix and human-readable message. Some examples: 173- `CLOSED` messages MUST be sent in response to a `REQ` when the relay refuses to fulfill it. It can also be sent when a relay decides to kill a subscription on its side before a client has disconnected or sent a `CLOSE`. This message uses the same pattern of `OK` messages with the machine-readable prefix and human-readable message. Some examples:
173 * `["CLOSED", "sub1", "unsupported: filter contains unknown elements"]` 174 * `["CLOSED", "sub1", "unsupported: filter contains unknown elements"]`
174 * `["CLOSED", "sub1", "error: could not connect to the database"]` 175 * `["CLOSED", "sub1", "error: could not connect to the database"]`
175 * `["CLOSED", "sub1", "error: shutting down idle subscription"]` 176 * `["CLOSED", "sub1", "error: shutting down idle subscription"]`
176- The standardized machine-readable prefixes for `OK` and `CLOSED` are: `duplicate`, `pow`, `blocked`, `rate-limited`, `invalid`, and `error` for when none of that fits. 177- The standardized machine-readable prefixes for `OK` and `CLOSED` are: `duplicate`, `pow`, `blocked`, `rate-limited`, `invalid`, `restricted`, and `error` for when none of that fits.