JavaJava V4 SDK Status Events

CategoryDescription
PNBadRequestCategoryPubNub Java SDK will send PNBadRequestCategory when some parameter is missing like message, channel, subscribe key, publish key.
PNUnexpectedDisconnectCategoryThe SDK is not able to reach the PubNub Data Stream Network because the machine or device are not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.
PNTimeoutCategoryProcessing has failed because of request time out.
CategoriesDescription
PNNetworkIssuesCategoryA subscribe event experienced an exception when running.
PNReconnectedCategorySDK was able to reconnect to pubnub.
PNConnectedCategorySDK subscribed with a new mix of channels (fired every time the channel / channel group mix changed).
PNAcknowledgmentCategoryUsed API report success with this status category.
PNAccessDeniedCategoryRequest failed because of access error (active PAM). status.errorData.channels or status.errorData.channelGroups contain list of channels and/or groups to which user with specified auth key doesn't have access.
PNTimeoutCategoryUsed API didn't received response from server in time.
PNDisconnectedCategoryClient did unsubscribe from specified real-time data channels.
PNUnexpectedDisconnectCategoryPreviously started subscribe loop did fail and at this moment client disconnected from real-time data channels.
PNBadRequestCategoryRequest can't be completed because not all required values has been passed or passed values has unexpected data type. PubNub Java SDK will send PNBadRequestCategory when some parameter is missing like message, channel, subscribe key, publish key.
PNMalformedFilterExpressionCategorySubscription request can't be processed by PubNub service because filter expression malformed and can't be evaluated.
PNMalformedResponseCategoryRequest received in response non-JSON data. It can be because of publish WiFi hotspot which require authorization or proxy server message.
PNDecryptionErrorCategoryHistory API may return this status category in case if some messages can't be decrypted. Unencrypted message will be returned in status.associatedObject where associatedObject is PNMessageData which contain channel and message properties.
PNTLSConnectionFailedCategoryTLS handshake issues and in most cases because of poor connection quality and packets loss and delays.
PNTLSUntrustedCertificateCategoryOrigin to which client tried to connect has untrusted certificate.
PNRequestMessageCountExceededCategoryIf requestMessageCountThreshold is set, this status event will arrive each time when client receive more messages when it has been specified for PNConfiguration property.
PNUnknownCategory

PubNub SDK could return this Category if the URL was not found. Check the channel or channelGroup.

This call throw this Error:

pubNub.subscribe()
    .withPresence()
    .channels(Arrays.asList("awesomeChannel/"))
    .execute();