resources:
  PrestaShopBundle\Api\Resource\HookStatus:
    operations:
      ApiPlatform\Metadata\Get:
        provider: PrestaShopBundle\Api\StateProvider\HookStatusProvider
        uriTemplate: '/hook-status/{id}'
        requirements:
          id: '\d+'
        exceptionToStatus:
          PrestaShop\PrestaShop\Core\Domain\Hook\Exception\HookNotFoundException: 404
