[BUGFIX] Use HTTP 400 instead of 500 when client is faulty 64/53564/2
authorXavier Perseguers <xavier@typo3.org>
Fri, 21 Jul 2017 11:53:38 +0000 (13:53 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 24 Jul 2017 18:48:39 +0000 (20:48 +0200)
commita57ea45b63611bcc5bae408c70424bd2f1915407
tree132ebb02d0b8c5dca4d36886292775f2702fd45d
parent255042079586a973e3d659636f14435877814587
[BUGFIX] Use HTTP 400 instead of 500 when client is faulty

When checking for precondition in the request, HTTP 400 code should
be returned whenever the client is responsible for having issued a
bad request.

HTTP 500 indicates an internal error on the server, which is not the
case under such circumstance.

Change-Id: Ib7e63428b1a84b63e1a2a0c9d95513972be83d33
Resolves: #81941
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53564
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Controller/Page/LocalizationController.php