Correct error messages are now sent even if not acceptable

previously an error response to a request which didn't accept text/html
would result in an HTTP 416 response being returned to the client.