Expanded class hierarchy of EntityAccessDeniedHttpException in Drupal 9
- class \Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException extends \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException implements CacheableDependencyInterface uses CacheableDependencyTrait
- class \Drupal\jsonapi\Exception\EntityAccessDeniedHttpException implements ResourceIdentifierInterface uses DependencySerializationTrait, ResourceIdentifierTrait