Add `text=` and replace `content`(=) with `html`(=)

Includes updated tests
Set response status to 404/500 as appropriate