fixed ErrorResponse call in API::setupPublic()

- removed empty constructors in updated endpoints
- added missing keys to Error class (unauthorized, forbidden)
This commit is contained in:
Jonathan Labreuille
2016-08-03 16:04:45 +02:00
parent c5b376bd21
commit 1c6fca7f83
4 changed files with 18 additions and 13 deletions

View File

@ -6,6 +6,8 @@ if(!defined('ABSPATH')) exit;
final class Error {
const UNKNOWN = 'unknown';
const BAD_REQUEST = 'bad_request';
const UNAUTHORIZED = 'unauthorized';
const FORBIDDEN = 'forbidden';
private function __construct() {