Errors

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

CodeDescription
BAD_REQUESTThe server cannot or will not process the request due to something that is perceived to be a client error.
UNAUTHORIZEDThe client request has not been completed because it lacks valid authentication credentials for the requested resource.
NOT_FOUNDThe server cannot find the requested resource.
PAYLOAD_TOO_LARGERequest entity is larger than limits defined by server.
TOO_MANY_REQUESTSThe rate limit has been exceeded or too many requests are being sent to the server.
INTERNAL_SERVER_ERRORAn unspecified error occurred.

Error Handling