Moves current API under JSON namespace
This commit is contained in:
16
lib/API/JSON/Error.php
Normal file
16
lib/API/JSON/Error.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace MailPoet\API\JSON;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
final class Error {
|
||||
const UNKNOWN = 'unknown';
|
||||
const BAD_REQUEST = 'bad_request';
|
||||
const UNAUTHORIZED = 'unauthorized';
|
||||
const FORBIDDEN = 'forbidden';
|
||||
const NOT_FOUND = 'not_found';
|
||||
|
||||
private function __construct() {
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user