Acceptance criteria:
- User behaviour it should apply to: Rate limited edits and Temp user creation throttling
- HTTP status code: 429
- Error code: request-limit-reached
- Error message: Exceeded the limit of actions that can be performed in a given span of time
- Error context: { "reason": "{reason-code}" } (where reason-code is one of 'rate-limit-reached', 'temp-account-creation-limit-reached')
OLDER
Corresponding action API responses
Rate limiting:
{
"error": {
"code": "failed-save",
"info": "The save has failed.",
"messages": [
{
"name": "wikibase-api-failed-save",
"parameters": [],
"html": {
"*": "The save has failed."
}
},
{
"name": "actionthrottledtext",
"parameters": [],
"html": {
"*": "As an anti-abuse measure, you are limited from performing this action too many times in a short space of time, and you have exceeded this limit.\nPlease try again in a few minutes."
}
}
],
"*": "See http://default.mediawiki.mwdd.localhost:8080/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
},
"servedby": "2ccec9f2adab"
}Temp user creation throttling:
{
"error": {
"code": "failed-save",
"info": "The save has failed.",
"messages": [
{
"name": "wikibase-api-failed-save",
"parameters": [],
"html": "The save has failed."
},
{
"name": "acct_creation_throttle_hit",
"parameters": [
3,
{
"duration": 10000
}
],
"html": "Visitors to this wiki using your IP address have created 3 accounts in the last 2 hours, 46 minutes and 40 seconds, which is the maximum allowed in this time period.\nAs a result, visitors using this IP address cannot create any more accounts at the moment."
}
],
"docref": "See http://default.mediawiki.mwdd.localhost:8080/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
},
"servedby": "2ccec9f2adab"
}