- Ably FAQs
- Ably error codes
- Client errors
-
Account billing and packages
-
General
-
Realtime API and client libraries
-
Troubleshooting
-
Channels
-
REST API and client libraries
-
Ably error codes
-
Account and app setup and configuration
-
Ably architecture, transports, and security
-
Performance and Redundancy
-
Push Notifications
-
Integrations
-
Migrating to Ably from an existing service
Error code: 40160 - action not permitted
This means that the client does not have permission to do whatever it is attempting to do. Read through our permissions documentation and make sure the client has appropriate permissions to allow that action to be performed.
If you are using token authentication, remember that the capabilities specified when requesting a token are intersected with the capabilities of the underlying key to get the actual capabilities of the token.
Specific examples of this error include:
Key does not support requested capabilities
- An empty object {}
- A resource which is different to what the API key may be restricted to
- A capability operation which is different to what the API key may be restricted to
Please contact us by emailing support@ably.com if you have any questions.