Simple helper for handling error and success with two different callbacks