API: Pretty-printed responses should always use HTTP status 200
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Nov 2016 16:59:05 +0000 (11:59 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Nov 2016 17:03:40 +0000 (12:03 -0500)
commit44f8496104912253ca38053d159e1f0de1c949f9
treeb1db1b672046e33a3155b723a09e9e99742f3f58
parentc807d75bb18d33d029f1bf903fb844fde82af57c
API: Pretty-printed responses should always use HTTP status 200

To accomplish this, the responsibility for setting the HTTP status code
in the response is moved to ApiFormatBase.

This also adds a line to the pretty-printed response and to ApiSandbox's
output to indicate the status that would be used.

Bug: T150344
Change-Id: Iaf0698ee1b93565d9b02b5a9aa8f93ceb135658b
includes/api/ApiFormatBase.php
includes/api/ApiMain.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.apisandbox.js