FancyCaptcha: Don't return status code 500, if no server error

A missing captchaId usually isn't a server error, it's a request error, so return
an appropriate status code (400).

Bug: T92827
Change-Id: Ia04da583858a8450b8445ad69bc1ef2b7d05f061
This commit is contained in:
Florianschmidtwelzow 2015-03-18 07:54:12 +01:00
parent 9410657977
commit b6c22b0e02

View file

@ -346,7 +346,7 @@ class FancyCaptcha extends SimpleCaptcha {
) )->isOK();
}
wfHttpError( 500, 'Internal Error', 'Requested bogus captcha image' );
wfHttpError( 400, 'Request Error', 'Requested bogus captcha image' );
return false;
}