avalanche-development/peel

View on GitHub
src/HttpError/PreconditionFailed.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AvalancheDevelopment\Peel\HttpError;

use AvalancheDevelopment\Peel\HttpErrorInterface;
use Exception;

class PreconditionFailed extends Exception implements HttpErrorInterface
{

    /**
     * @return integer
     */
    public function getStatusCode()
    {
        return 412;
    }

    /**
     * @return string
     */
    public function getStatusMessage()
    {
        return 'Precondition Failed';
    }
}