[BUGFIX] Use HTTP 400 instead of 500 when client is faulty 80/53580/3
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 19:12:22 +0000 (21:12 +0200)
commit1c2cad6a6de99ed91b137d0f30916f8eebd3919e
treefc565ea7b89b4a3e76bb16df4de8ccdb2e8c7b7a
parente755c688642269c4ec4d4efbc54ed8978ccc62d1
[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/53580
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Controller/Page/LocalizationController.php