Bug #55618

Wrong HTTP status code for missing entities

Added by Bastian Waidelich over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Should have
Category:
Error
Target version:
-
Start date:
2014-02-03
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When an exception is thrown in PropertyMapper::convert() it is always wrapped in a \TYPO3\Flow\Property\Exception leading to the default exception handling which sets the status code of the HTTP response to 500.
At least in the case of a TargetNotFoundException this should be a 404 status instead

Also available in: Atom PDF