Skip to main content

API Errors

Errors

In case of Error during handling user’s request the API responds using the following schema:

{
"error": {
"code": 500,
"message": "Something bad happened",
"status": "INTERNAL"
}
}

Error Codes

The following error codes are the possible errors of all methods

ErrorCodeStatusRelated Requests
Ack Timeout408TIMEOUTAcknowledge Message (POST) - more info
Topic already exists409ALREADY_EXISTSCreate Topic (PUT)
Subscription already exists409ALREADY_EXISTSCreate Subscription (PUT)
Invalid Topics Name400INVALID_ARGUMENTCreate Subscription (PUT)
Topic Doesn't Exist404NOT_FOUNDShow specific Topic (GET)
Invalid Topic ACL arguments400INVALID_ARGUMENTModify Topic ACL (POST)
Subscription Doesn't Exist404NOT_FOUNDShow specific Subscription (GET)
Message size to large413INVALID_ARGUMENTTopic Publish (POST)
Invalid Subscription Arguments400INVALID_ARGUMENTCreate Subscription (POST), Modify Push Configuration (POST)
Invalid Subscription ACL arguments400INVALID_ARGUMENTModify Subscription ACL (POST)
Invalid ACK Parameter400INVALID_ARGUMENTSubscription Acknowledge (POST)
Invalid ACK id400INVALID_ARGUMENTSubscription Acknowledge (POST)
Invalid pull parameters400INVALID_ARGUMENTSubscription Pull (POST)
Unauthorized401UNAUTHORIZEDAll requests (if a user is not authenticated)
Forbidden Access to Resource403FORBIDDENAll requests (if a user is forbidden to access the resource)