Aero developer docs
Error codes
Errors return an HTTP status plus a stable code, so your Aero can branch on what went wrong.
Codes
| Code | Meaning |
|---|---|
AERO_INVALID_TOKEN | The token is wrong, revoked, or rotated away. |
AERO_DISABLED | The Aero app is disabled. |
AERO_SUSPENDED | An admin suspended this Aero. |
AERO_INSTALLATION_NOT_FOUND | You're not installed in that Nexus. |
AERO_PERMISSION_DENIED | The install lacks the permission this action needs. |
AERO_SCOPE_DENIED | The target Space is outside your install's scope. |
AERO_RESOURCE_NOT_FOUND | The Space or resource doesn't exist in that Nexus. |
The api() helper in the Runtime API page attaches the code to the thrown error as err.code.