useLegacyPromiseExtensions([value]);
Configure $http service to return promises without the shorthand methods success and error. This should be used to make sure that applications work without these methods. Defaults to true. If no value is specified, returns the current configured value. 
Parameters
Param Type Details  value (optional)   boolean   If true, $http will return a promise with the deprecated legacy success and error methods.  
Returns
booleanObject
 
If a value is specified, ret