-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3058 from TheKernelPanic/feature/exception-http-s…
…tatus-gone Implement exception class for Gone Http error
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.'; | ||
} |