Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement exception class for Gone Http error #3058

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.';
}