Currently, the Wikibase REST API responds with a blocked user message also when the block is done at the IP address level. In case a user is blocked by IP locally, a blocked user message will be returned (as seen below). Otherwise, a generic message is returned.
{ "code": "permission-denied", "message": "Access to resource is denied", "context": { "denial_reason": "blocked-user" } }
To improve signalling to API users, we would like to respond with the same error message both for locally and globally blocked users:
{ "code": "permission-denied", "message": "Access to resource is denied", "context": { "denial_reason": "blocked-ip-address" } }
Acceptance Criteria
- Both locally and globally blocked IPs receive the error message described above