Skip to content

Errors

Common Error Types

Error Types Status Code Description
APIKeyException 403 Preceded by a 403 status code, this indicates the expiry or invalidation of an API Key.
TokenException 401 Preceded by a 401 status code, this indicated the missing, expiry or invalidation of JWT token.
InputException 400 Preceded by a 400 status code, Represents missing required fields, bad values for parameters etc.
URL not found 404 Preceded by a 404 status code, Requested resource could not be found.
MiraeException --- Represent the error response received from mStock's API.
GeneralException --- Represents an Internal server error occured while processing the API request. This should only happen rarely.