ResponseBuilders
1 month ago
v1
1 month ago
API.php
2 months ago
Endpoint.php
1 year ago
Error.php
2 months ago
ErrorHandler.php
1 year ago
ErrorResponse.php
3 years ago
Response.php
2 months ago
SuccessResponse.php
3 years ago
index.php
3 years ago
Error.php
21 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\API\JSON; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | final class Error { |
| 9 | const UNKNOWN = 'unknown'; |
| 10 | const BAD_REQUEST = 'bad_request'; |
| 11 | const CONFLICT = 'conflict'; |
| 12 | const UNAUTHORIZED = 'unauthorized'; |
| 13 | const FORBIDDEN = 'forbidden'; |
| 14 | const NOT_FOUND = 'not_found'; |
| 15 | const REINSTALL_PLUGIN = 'reinstall_plugin'; |
| 16 | |
| 17 | private function __construct() { |
| 18 | |
| 19 | } |
| 20 | } |
| 21 |