adding status to error