-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathErrorCode.php
More file actions
39 lines (24 loc) · 653 Bytes
/
Copy pathErrorCode.php
File metadata and controls
39 lines (24 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
declare(strict_types=1);
namespace StringEncrypt;
/**
* API error codes returned in encrypt responses (`error` field).
*
* @see https://www.stringencrypt.com/api/
*/
final class ErrorCode
{
public const SUCCESS = 0;
public const EMPTY_LABEL = 1;
public const LENGTH_LABEL = 2;
public const EMPTY_STRING = 3;
public const EMPTY_BYTES = 4;
public const EMPTY_INPUT = 5;
public const LENGTH_STRING = 6;
public const INVALID_LANG = 7;
public const INVALID_LOCALE = 8;
public const CMD_MIN = 9;
public const CMD_MAX = 10;
public const LENGTH_BYTES = 11;
public const DEMO = 100;
}