Pass error code instead of error msg
Pass `errorFunc` to action handler