Skip to content

Commit

Permalink
Merge pull request #220 from ably/before-publish-rule-chat
Browse files Browse the repository at this point in the history
chat: add error code for before publish rule violations
  • Loading branch information
AndyTWF authored Nov 21, 2024
2 parents 313ef2a + f13287c commit ad95a67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions textile/chat-features.textile
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,14 @@ This section contains error codes that are specific to Chat. If a specific error
For non-chat-specific codes, the status code for the error should align with the error code. For example, error code @40000@ should hav status code @400@.

<pre>
// The message was rejected before publishing by a rule on the chat room.
// To be accompanied by status code 422
MessageRejectedByBeforePublishRule = 42211

// The message was rejected before publishing by a moderation rule on the chat room.
// To be accompanied by status code 422
MessageRejectedByModeration = 42213

// The messages feature failed to attach.
// To be accompanied with status code 500.
MessagesAttachmentFailed = 102001
Expand Down

0 comments on commit ad95a67

Please sign in to comment.