! Add support for sending HTTP status headers when there's an error (fixes #2110)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>