diff --git a/src/Enums/ApiError.php b/src/Enums/ApiError.php index 3e6769d..b4d7a17 100644 --- a/src/Enums/ApiError.php +++ b/src/Enums/ApiError.php @@ -47,6 +47,9 @@ use Kwaadpepper\Enum\BaseEnum; * a replay attack scenario. Timestamps are provided in headers * and in the http body * + * @method static self missingParameter() + * The request is missing some parameters + * * @method static self throttleRequestsException() * Too many requests have been attempted. The is a throttle security. * Normally you should not trigger this. @@ -78,6 +81,7 @@ class ApiError extends BaseEnum 'singleOptinCustomerExists' => 120, 'methodNotAllowed' => 150, 'wrongTimeStamp' => 151, + 'missingParameter' => 400, 'authorizationException' => 403, 'throttleRequestsException' => 429 ]; @@ -96,6 +100,7 @@ class ApiError extends BaseEnum 'needAuth' => 'Vous devez être authentifié', 'methodNotAllowed' => 'This method is not allowed for this request', 'wrongTimeStamp' => 'Your request is malformed, please check timestamp header and parameter', + 'missingParameter' => 'The request is missing some parameters', 'authorizationException' => 'You are not autorized to access this', 'throttleRequestsException' => 'Throttle: too many request have been attempted, please retry later' ];