Summary
When a site is in read only mode, the CheckUser IP reveal REST APIs will encounter an exception and return a 500 error with a stack trace. This should instead return a more user friendly error.
Background
- When a user uses the CheckUser "Show IP" button, a REST API request is made to the IP reveal REST API
- This request will create a log entry if the user has the permissions to perform the action
- Inserting jobs on wikis may require writing to the DB, if the $wgJobTypeConf is configured to use the DB (which is the default)
- This write will fail if the site is in read only mode
- Even if the job is inserted, the write in the job will still fail
- When in read-only mode we should return a more friendly 503 error
Acceptance criteria
- CheckUser REST APIs return a user-friendly server error message when the site is in read only mode

