Add missing status code mapping for OrderItemNotFoundException (#18969)

| Q               | A
|-----------------|-----
| Branch?         | 2.1
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | 
| Related tickets | #18787
| License         | MIT
This commit is contained in:
Kamil Grygierzec 2026-04-09 12:53:37 +02:00 committed by GitHub
commit 943317d5e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,6 +60,7 @@ api_platform:
Sylius\Component\Payment\Exception\PaymentRequestNotFoundException: 404
Sylius\Bundle\ApiBundle\Exception\PaymentNotFoundException: 404
Sylius\Bundle\ApiBundle\Exception\PaymentMethodNotFoundException: 404
Sylius\Bundle\ApiBundle\Exception\OrderItemNotFoundException: 404
Sylius\Bundle\ApiBundle\Exception\StateMachineTransitionFailedException: 422
Sylius\Bundle\ApiBundle\Exception\TranslationInDefaultLocaleCannotBeRemoved: 422
Sylius\Bundle\ApiBundle\Exception\TranslationLocaleMismatchException: 422