https://bugzilla.wikimedia.org/show_bug.cgi?id=31156
Web browser: ---
Bug #: 31156
Summary: Maxlag errors returning 200 OK, not 503 as documented
Product: MediaWiki
Version: 1.17.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
The documentation for maxlag states that any errors should be returned with a
503 HTTP response code:
http://www.mediawiki.org/wiki/Manual:Maxlag_parameter
However, on the version of MW running on the English Wikipedia (1.17wmf1), the
error comes back as 200 OK instead:
$ curl -v
'http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&maxlag=-10'
* About to connect() to en.wikipedia.org port 80 (#0)
* Trying 208.80.152.2... connected
* Connected to en.wikipedia.org (208.80.152.2) port 80 (#0)
> GET /w/api.php?action=query&meta=siteinfo&maxlag=-10 HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7
> OpenSSL/0.9.8r zlib/1.2.3
> Host: en.wikipedia.org
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Sun, 25 Sep 2011 22:58:35 GMT
< Server: Apache
< Cache-Control: private
< Retry-After: 5
< X-Database-Lag: 0
< MediaWiki-API-Error: maxlag
Bug or feature? See also:
https://github.com/jpatokal/mediawiki-gateway/issues/22#issuecomment-2191496
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l