Last updated

Error Codes

The Collective2 API uses the following error codes.

HTTP Errors

Error CodeNameMeaning
304Not ModifiedUsed when HTTP caching headers are in play. Only sent in response to If-Modified-Since headers.
400Bad RequestYour request is invalid.
401UnauthorizedYour API key is wrong.
403ForbiddenUnauthorized request. The client does not have access rights to the content. Unlike 401, the client's identity is known to the server.
404Not FoundWhen a non-existent endpoint or resource is requested (bad URL or requested data was not found).
406Not AcceptableIf incorrect Accept header was provided as part of the request. Accept header must be "application/json".
410GoneIndicates that the resource at this end point is no longer available. Useful as a blanket response for old API versions. (not currently used)
429Too Many RequestWhen a request is rejected due to rate limiting.
500Internal Server ErrorUsed for internal errors. No details are provided to clients for security reasons. Please contact us at help@collective2.com if you see this.
503Service UnavailableWe're temporarily offline for maintenance. Please try again later.

C2 Errors

10xx: General Server or Network issues

Error CodeNamMeaning
1000UNKNOWNAn unknown error occured while processing the request.
1001DISCONNECTEDInternal error; unable to process your request. Please try again.
1002FORBIDDENYou are not authorized to execute this request.
1019VIRUS_FOUNDA virus was found in the submitted data.

11xx: Request issues

Error CodNameMeaning
1102MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter was not sent, was empty/null, or malformed.
1121INVALID_SYMBOLInvalid symbol.
1128OPTIONAL_PARAMS_BAD_COMBOThe combination of optional parameters is invalid.
1130INVALID_PARAMETERData sent for parameter is not valid.
2010NEW_ORDER_REJECTEDYour order was rejected.
2011CANCEL_REJECTEDYour cancel was rejected.
2013NOT_FOUNDRequested data does not exist.
2014BAD_API_KEY_FMTAPI-key format invalid.
2015REJECTED_API_KEYInvalid API-key, IP, or permissions for action.
2016INVALID_PRICEPrice is invalid
2017ALREADY_EXISTSCannot add item because it already exists.
2018REJECTED_IP_ADDRESSIP address is rejected.