To ensure that OData BlackBerry clients are notified of HTTP errors while establishing a connection with the network edge, implement a listener.
public static void setODPHTTPErrorListener(IODPHttpErrorListener oListener) throws MessagingClientException
public class UserRegistration implements IODPHttpErrorListener{ . . public void startUserRegistration(){ UserManager.initialize(appID); UserManager.setConnectionProfile(serverIP,serverPort, farmID); UserManager.setODPHttpErrorListener(this); UserManager.registerUser(username,securityConfig,password); } //callback method for HttpError public void onHttpError(int errorCode, String errorMsg, Hashtable errorHeader) { logger.info(null, "On HttpError", "Error Info" +errorCode+errorMsg); } }