Page MenuHomePhabricator

return 4/5xx HTTP status codes when valid
Closed, ResolvedPublic

Description

What/Why:
We need to begin returning other status codes other than defaulting all of them to '200', especially when the responses are actually 4/5xx's. We certainly see 503s and 504s coming back routinely in our logs (ex: 503, 504). Furthermore, we have greater incentive in achieving this now in order to meet SLO with xfn's this quarter.

How:

  1. Identify where in the WL code the evident 503 and 504s get thrown
  2. Return the respective status code and not 200.

Event Timeline

ecarg triaged this task as Medium priority.Apr 30 2025, 5:29 PM

Change #1140253 had a related patch set uploaded (by Ecarg; author: Ecarg):

[mediawiki/extensions/WikiLambda@master] Begin returning status codes based on exception

https://gerrit.wikimedia.org/r/1140253

ecarg changed the task status from Open to In Progress.Apr 30 2025, 10:43 PM

Change #1140253 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Begin returning status codes based on exception

https://gerrit.wikimedia.org/r/1140253

Will mark as resolved and opened followup task of actually using this data: T395740