Enumeration
DisruptiveError
public enum DisruptiveError: Error
An enumeration of all the possible errors that could occur by calling one of the endpoints.
Relationships
Conforms To
Error
Enumeration Cases
serverError
case serverError
Something went wrong on the server. This error comes from a 500, 503, or 504 status code.
badRequest
case badRequest
Something went wrong with parsing the request on the server. This error comes from a 400 status code.
unauthorized
case unauthorized
Either the client is not properly authorized, or the access token has expired. This error comes from a 401 status code.
insufficientPermissions
case insufficientPermissions
You attempted to access a resource that you don't have access to. This error comes from either a 403 status code.
notFound
case notFound
You attempted to access a resource that you either don't have access to, or doesn't exist. This error comes from either a 403 or a 404 status code.
resourceAlreadyExists
case resourceAlreadyExists
You likely tried to create a resource that already exists. This error comes from a 409 status code.
unknownError
case unknownError
Something unexpected happened that could not be recovered from. Check the logs for more information
loggedOut
case loggedOut
Returned when the authenticator
is currently logged out. Call
login()
on the authenticator
to log it back in.