58 lines
1.0 KiB
PHP
58 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* 2007-2022 Apollotheme
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* LeoElements is module help you can build content for your shop
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* @author Apollotheme <apollotheme@gmail.com>
|
|
* @copyright 2007-2022 Apollotheme
|
|
* @license http://apollotheme.com - prestashop template provider
|
|
*/
|
|
|
|
namespace LeoElements\Core\Utils;
|
|
|
|
use LeoElements\Leo_Helper;
|
|
|
|
if ( ! defined( '_PS_VERSION_' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
/**
|
|
* Elementor exceptions.
|
|
*
|
|
* Elementor exceptions handler class is responsible for handling exceptions.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
class Exceptions {
|
|
|
|
/**
|
|
* HTTP status code for bad request error.
|
|
*/
|
|
const BAD_REQUEST = 400;
|
|
|
|
/**
|
|
* HTTP status code for unauthorized access error.
|
|
*/
|
|
const UNAUTHORIZED = 401;
|
|
|
|
/**
|
|
* HTTP status code for forbidden access error.
|
|
*/
|
|
const FORBIDDEN = 403;
|
|
|
|
/**
|
|
* HTTP status code for resource that could not be found.
|
|
*/
|
|
const NOT_FOUND = 404;
|
|
|
|
/**
|
|
* HTTP status code for internal server error.
|
|
*/
|
|
const INTERNAL_SERVER_ERROR = 500;
|
|
}
|