Registering a Listener for HTTP Errors in iOS Applications

To ensure that OData iOS clients are notified of HTTP errors while establishing a connection with the network edge, implement a listener.

Syntax

To register a listener for HTTP error codes, implement the protocol ODPHTTPErrorListenerDelegate.
@protocol ODPHTTPErrorListenerDelegate <NSObject>
@required
- (void) onHTTPError: (int)code errorMessage:(NSString*)message httpHeaders:(NSDictionary*)headers;

Examples