Skip to content

Commit

Permalink
Merge pull request #3058 from TheKernelPanic/feature/exception-http-s…
Browse files Browse the repository at this point in the history
…tatus-gone

Implement exception class for Gone Http error
  • Loading branch information
l0gicgate authored Oct 2, 2021
2 parents 66e8ba5 + b155038 commit b7feb13
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Slim/Exception/HttpGoneException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License)
*/

declare(strict_types=1);

namespace Slim\Exception;

class HttpGoneException extends HttpSpecializedException
{
/**
* @var int
*/
protected $code = 410;

/**
* @var string
*/
protected $message = 'Gone.';

protected $title = '410 Gone';
protected $description = 'The target resource is no longer available at the origin server.';
}

0 comments on commit b7feb13

Please sign in to comment.