sendHttpCode: avoid a hard-coded protocol version as well as reliance on fixed status codes