Errors
Whenever an error occurs in a process, SecrecyClient throws an "error". This error contains all the information that you need to handle the error in the client.
The SecrecyClient defines a list of error codes that each represent a different type of error.
Error Shape
Error Codes
Code | Description |
---|---|
BAD_REQUEST | The server cannot or will not process the request due to something that is perceived to be a client error. |
UNAUTHORIZED | The client request has not been completed because it lacks valid authentication credentials for the requested resource. |
NOT_FOUND | The server cannot find the requested resource. |
PAYLOAD_TOO_LARGE | Request entity is larger than limits defined by server. |
TOO_MANY_REQUESTS | The rate limit has been exceeded or too many requests are being sent to the server. |
INTERNAL_SERVER_ERROR | An unspecified error occurred. |
Error Handling