Comment by kemitche on 06/02/2020 at 21:33 UTC
12 upvotes, 2 direct replies (showing 2)
View submission: Upcoming API change: POST /api/submit
View parent comment
Great question! I'll share most/all of the current ones here. Note that the list may get added to in the future without notice. Clients should forward any unknown errors to the user, as these errors are generally intended to be something the end user can correct.
- SUBMIT_VALIDATION_BODY_BLACKLISTED_STRING: Self post body may not include the indicated word(s)
- SUBMIT_VALIDATION_TITLE_BLACKLISTED_STRING: Title may not include the indicated word(s)
- SUBMIT_VALIDATION_MIN_LENGTH: Title is too short
- SUBMIT_VALIDATION_MAX_LENGTH: Title is too long
- SUBMIT_VALIDATION_BODY_REQUIRED: Self post body is required
- SUBMIT_VALIDATION_BODY_NOT_ALLOWED: Self post body is disallowed
- SUBMIT_VALIDATION_LINK_WHITELIST: Link must be from one of these domains
- SUBMIT_VALIDATION_LINK_BLACKLIST: Link must NOT be from any of these domains
- SUBMIT_VALIDATION_REPOST: Link may not be reposted within this subreddit
- SUBMIT_VALIDATION_FLAIR_REQUIRED: Flair must be added at submission time
Replies
Comment by geo1088 at 06/02/2020 at 21:44 UTC
3 upvotes, 1 direct replies
Sounds good! Providing the human-readable descriptions seems like it will cover most cases, but I imagine some clients may want to do extra things when certain codes are received.
Comment by remarkableintern at 07/02/2020 at 08:10 UTC
2 upvotes, 1 direct replies
This will put automod out of work