handle error response from newgistics