changed response type from text/html to text/plain
simplified return code in send_response()
added send_response_xxx() methods for HTTP codes 204, 405 and 500
making result a char array to simplify code