/var/www/html_us/wp-content/plugins/elementor/core/utils/exceptions.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Elementor\Core\Utils;

if ( ! 
defined'ABSPATH' ) ) {
    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;
}