From 31c92cbf9d670d84e6f6e2bcc28fa024dea4349a Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Wed, 16 Oct 2024 17:12:48 +0100 Subject: [PATCH 1/3] rules: add before publish rule error codes --- protocol/errors.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocol/errors.json b/protocol/errors.json index 0af182d..2ef967a 100644 --- a/protocol/errors.json +++ b/protocol/errors.json @@ -90,6 +90,9 @@ "41001": "push device registration expired", "42200": "Unprocessable entity", + "42210": "content rejected (unspecified)", + "42211": "content rejected by before publish rule", + "42212": "content rejected by validation", "42910": "rate limit exceeded (nonfatal): request rejected (unspecified)", "42911": "max per-connection publish rate limit exceeded (nonfatal): unable to publish message", From 9b5f7f267610b31d1daa01936e7701b0d564b95c Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Wed, 13 Nov 2024 08:53:07 +0000 Subject: [PATCH 2/3] errors: change wording on 42200 --- protocol/errors.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/errors.json b/protocol/errors.json index 2ef967a..61408bb 100644 --- a/protocol/errors.json +++ b/protocol/errors.json @@ -89,7 +89,7 @@ "41001": "push device registration expired", - "42200": "Unprocessable entity", + "42200": "unprocessable content", "42210": "content rejected (unspecified)", "42211": "content rejected by before publish rule", "42212": "content rejected by validation", From 11c25c56a047d1db0118fdd14e275e3c6f5a5270 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Wed, 20 Nov 2024 16:58:19 +0000 Subject: [PATCH 3/3] errors: add 42213 code --- protocol/errors.json | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/errors.json b/protocol/errors.json index 61408bb..fba1b0f 100644 --- a/protocol/errors.json +++ b/protocol/errors.json @@ -93,6 +93,7 @@ "42210": "content rejected (unspecified)", "42211": "content rejected by before publish rule", "42212": "content rejected by validation", + "42213": "content rejected by moderation", "42910": "rate limit exceeded (nonfatal): request rejected (unspecified)", "42911": "max per-connection publish rate limit exceeded (nonfatal): unable to publish message",