When an error occurs, the Nabto Cloud API returns a response with status code 400 or above. All error responses contains a JSON formatted body detailing the error. This can be used to destinquish different errors with the same status code.
The error object is uses the following format:
type string is a static string suitable for programatical handling. The
message string is a human readable string detailing the error.
|A parameter in the request was not properly formatted
|There was a syntax error in the request
|A parameter did not use a valid format
|The provided API Key was not valid
|The API key must be MFA authorized
|The API key does not have access to the requested ressource
|The Organization reached its limit of the ressource
|Removal of the organization owner was requested
|The max number of devices allowed for the ressource has been reached.
|The API key does not have sufficient persmissions to perform the request
|The requested ressource does not exist
|The ressource already exist
|An internal error happend in the API backend