Error code: 40000 - Bad request

If you see this error, it means that the request you have sent to Ably cannot be understood by our servers. This typically happens if you have a malformed request which does not match one of the structures our servers expect.

Examples of specific 4000 errors are as follows:

Unable to publish in Suspended state

If you see this as the reason for a 40000 error it means the clients connection is in a suspended state when an attempt to publish a message was made. See the Available connection states documentation on information on what the suspended connection state means