web: change the status code on failed to generate the text