By dawehner on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.4.x
Introduced in version:
8.4.0
Issue links:
Description:
As of #2827084: EntityNormalizer::denormalize should not throw UnexpectedValueException, but \Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException, so we get a 422 response instead of 400 we distinguish between bad requests and unprocessable entities by throwing a 422 error for POST/PATCH requests when the passed in entity has valid encoded content (like valid JSON), but invalid data, like missing bundle keys or other required keys (depending on fields etc..). Previously we threw 400 responses for all errors, which is now just thrown when the actual request is invalid, for example invalid JSON is sent.
Impacts:
Module developers