trying to change status code on failure