Changed Encryption to use LibSodium instead of OpenSSL, refactored many things and overall improved the code quality and performance with magic.
This commit is contained in:
parent
46ad03a54d
commit
367399f0fd
44 changed files with 2971 additions and 2016 deletions
|
@ -7,16 +7,21 @@ enum StandardError : int
|
|||
// Fallback Codes
|
||||
case UNKNOWN = -1;
|
||||
|
||||
// Server/Request Errors
|
||||
case INTERNAL_SERVER_ERROR = -100;
|
||||
case SERVER_UNAVAILABLE = -101;
|
||||
case BAD_REQUEST = -102;
|
||||
case FORBIDDEN = -103;
|
||||
case UNAUTHORIZED = -104;
|
||||
case RESOLUTION_FAILED = -105;
|
||||
case CRYPTOGRAPHIC_ERROR = -106;
|
||||
|
||||
// RPC Errors
|
||||
case RPC_METHOD_NOT_FOUND = -1000;
|
||||
case RPC_INVALID_ARGUMENTS = -1001;
|
||||
|
||||
// Server Errors
|
||||
case INTERNAL_SERVER_ERROR = -2000;
|
||||
case SERVER_UNAVAILABLE = -2001;
|
||||
CASE RPC_BAD_REQUEST = -1002;
|
||||
|
||||
// Client Errors
|
||||
case BAD_REQUEST = -3000;
|
||||
case METHOD_NOT_ALLOWED = -3001;
|
||||
|
||||
// Authentication/Cryptography Errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue