Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat: add error code for before publish rule violations #220

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading