Angular HTTP + Ionic native HTTP Wrapper?

I want to use the native http + plugin but while developing locally I have to use Angular HTTP

This is fine but is there any kind of standardised way to handle the errors and responses or has anyone already created such a wrapper that uses NG HTTP if no cordova and switches to native HTTP if it is a cordova app ?