exceptions.php (708B)
1 <?php 2 namespace Elementor\Core\Utils; 3 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; // Exit if accessed directly 6 } 7 8 /** 9 * Elementor exceptions. 10 * 11 * Elementor exceptions handler class is responsible for handling exceptions. 12 * 13 * @since 2.0.0 14 */ 15 class Exceptions { 16 17 /** 18 * HTTP status code for bad request error. 19 */ 20 const BAD_REQUEST = 400; 21 22 /** 23 * HTTP status code for unauthorized access error. 24 */ 25 const UNAUTHORIZED = 401; 26 27 /** 28 * HTTP status code for forbidden access error. 29 */ 30 const FORBIDDEN = 403; 31 32 /** 33 * HTTP status code for resource that could not be found. 34 */ 35 const NOT_FOUND = 404; 36 37 /** 38 * HTTP status code for internal server error. 39 */ 40 const INTERNAL_SERVER_ERROR = 500; 41 }