Changed API for action proxy's failure method
Added error type to failure data