Errors
Errors will be generated back in the json response in the "errors" envelope. There may also be a http status code returned in specific scenarios.
Example Error Response
{
"errors": [
{
"internal_message": "Unauthorized",
"user_message": "An error occurred",
"code": "401",
"more_info": "http://www.lunasoft.com/api.php"
}
]
}
HTTP error status codes
401 - Unauthorized access - missing or incorrect api key in authorization header
400 - Bad Request - an error/issue with the request provided to the api call
404 - Not Found - incorrect endpoint path or requested object no longer present