Message Codes

When debugging, the LaunchKey Platform API will return errors in the form of a 5 digit number that can be decoded using this guide.

Format

An error code is a 5 digit number in the form of aabcc:

[aa][b][cc]

[aa]:a two digit number identifying the resource the error is linked to
[b]:a one digit number indicating the type of error message
[cc]:a two digit number representing the message content

[aa] - Resource Code

A two digit number identifying the resource, or type of entity or event, the error is linked to.

10:Users
20:Apps
30:Devices
40:Auths
50:Logs
60:Ping
70:Poll

[b] - Error Type

A one digit number indicating the type of error message.

1:Purely informational
2:Creation/success
4:Standard errors
5:Unexpected errors or exceptions

[cc] - Error Message

A two digit number representing the message content.

Code Dictionary

[a] 40 Auths Resource

[b] 2 Success

40220:POST Pushed notification

[b] 4 Error

40421:POST Incorrect data for API call
40422:POST Credentials incorrect for app and app secret
40423:POST Error verifying app
40424:POST No linked devices
40425:POST Invalid service key
40426:POST No such user
40428:POST Signature does not match
40429:POST App credentials incorrect
40431:POST Authorization expired
40432:POST Error checking signature, ensure padding is valid
40433:POST Signature matches, but error decrypting secret_key
40434:POST Decrypted secret_key, but malformed structure
40435:POST App disabled
40436:POST Too many authorization attempts, please wait a moment and try again
40437:POST Datestamp must be in format: %Y-%m-%d %H:%M:%S

[a] 50 Logs Resource

[b] 2 Success

50240:PUT Successfully updated

[b] 4 Error

50441:PUT Incorrect data for API call
50442:PUT Credentials incorrect
50443:PUT Error validating app
50444:PUT Incorrect data for authorization
50445:PUT Invalid service key
50446:PUT Auth request does not correlate to session
50447:PUT App not found
50448:PUT Signature does not match
50449:PUT App credentials incorrect
50451:PUT Authorization expired
50452:PUT Error checking signature, make sure padding is valid
50453:PUT Signature matches, but error decrypting secret_key
50454:PUT Decrypted secret_key, but malformed structure
50455:PUT Log inconsistency, unable to update
50456:PUT Unknown auth request
50457:PUT Datestamp must be in format: %Y-%m-%d %H:%M:%S

[a] 60 Ping Resource

[b] 2 Success

60200:GET Return the public key
60201:GET Key is up to date

[b] 4 Error

60401:GET Incorrect data for API call

[a] 70 POLL RESOURCE

[b] 2 Success

70200:GET Return the auth package

[b] 4 Error

70401:GET Incorrect data for API call
70402:GET There is no pending request
70403:GET Pending response
70404:GET Expired request

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×