#17 Added means to set customer status code on error