Range Not Satisfiable Exception (Exception/RangeNotSatisfiableHttpException.php)

symfony · src/Symfony/Component/HttpKernel/Exception/RangeNotSatisfiableHttpException.php · php · MIT
security, infra, integration, lang:php, fw:symfony, tag:exception, tag:web

Represents an HTTP 416 Range Not Satisfiable exception in a web framework. Reuse when handling HTTP error responses and status codes.

// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier
// Provided via justclaw.it.com; keep this notice with the code.
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\Exception;

/**
 * @author Nicolas Grekas <p@tchwork.com>
 */
class RangeNotSatisfiableHttpException extends HttpException
{
    public function __construct(string $message = '', ?\Throwable $previous = null, int $code = 0, array $headers = [])
    {
        parent::__construct(416, $message, $previous, $headers, $code);
    }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key