NotFoundException | 404 | Entity not found | new NotFoundException(type: 'entity', id: $id, parameter: 'id', previous: $e) |
ForbiddenException | 403 | Permission denied | new ForbiddenException(sprintf('Access denied to "%s"', $name)) |
ConflictException | 409 | Optimistic locking, resource state conflicts | new ConflictException($message) |
EnvironmentException | 500 | Server/environment errors (intentional 500) | new EnvironmentException($message) |
InvalidArgumentException | 422 | Invalid input, validation failures | new InvalidArgumentException(message: $msg, previous: $e) |
MaxFileSizeExceededException | 413 | File too large | new MaxFileSizeExceededException($maxSize) |
NotFoundHttpException (Symfony) | 404 | Alternative to NotFoundException | new NotFoundHttpException($message) |