PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0-dev3
Elementor Website Builder – more than just a page builder v4.1.0-dev3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / utils / exceptions.php

exceptions.php in Elementor Website Builder – more than just a page builder 4.1.0-dev3, at core/utils/exceptions.php

42 lines 709 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }
42