Skip to content

ServiceUnavailableHttpException ​

Type
Class
Namespace
craft\web
Inherits
craft\web\ServiceUnavailableHttpException » yii\web\HttpException » yii\base\UserException » yii\base\Exception » Exception

UnavailableHttpException represents a "Service Unavailable" HTTP exception with status code 503.

View source

Public Properties ​

PropertyDescription
statusCodeinteger – HTTP status code, such as 403, 404, 500, etc.

Public Methods ​

MethodDescription
__construct()Constructor.
getName()

__construct() ​

Constructor.

View source

Arguments ​

  • $message (string, null) – The error message.
  • $code (integer) – The error code.
  • $previous (Exception, null) – The previous exception used for the exception chaining.