# Hercules Version 3: System Messages: HT - HTTP Server

This page describes the HTTP server messages for the Hercules S/370, ESA/390, and z/Architecture emulator.

### Messages

`HHCHT001I HTTP listener thread started: tid=threadid, pid=processid`
  Meaning
    The HTTP server thread to accept and process incoming requests has been started. The thread id is `threadid`, and the process id is `processid`.
  Issued by
    httpserv.c, function http_server
`HHCHT002E socket: error`
  Meaning
    An attempt to obtain a TCP socket to receive HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT003W Waiting for port port to become free`
  Meaning
    The thread that handles HTTP connection requests is waiting for the TCP port denoted by `port` to become available for use.
  Action
    If this message persists, some other program has control of the TCP port listed. Find out which one it is and terminate it.
  Issued by
    httpserv.c, function http_server
`HHCHT004E bind: error`
  Meaning
    An attempt to bind the socket to the TCP port to receive HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT005E listen: error`
  Meaning
    An attempt to put the socket into listening state for HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT006I Waiting for HTTP requests on port port pid=num`
  Meaning
    Hercules is ready to accept HTTP requests on port `port`.
  Issued by
    httpserv.c, function http_server
`HHCHT007E select: error`
  Meaning
    An attempt to wait for data from HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT008E accept: error`
  Meaning
    An attempt to accept a TCP connection for HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT009E fdopen: error`
  Meaning
    An attempt to open the socket for reading HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT010E http_request create_thread: error`
  Meaning
    An attempt to create a thread for processing HTTP requests failed. The error is described by `error`.
  Action
    Correct the error and restart Hercules.
  Issued by
    httpserv.c, function http_server
`HHCHT011E html_include: Cannot open filename: error`
  Meaning
    The file named `filename`, which was included from another file, could not be opened. The error is described by `error`.
  Action
    Correct the error and retry the operation.
  Issued by
    httpserv.c, function html_include
`HHCHT014I HTTPROOT = pathname`
  Meaning
    The root directory path for the HTTP server is `pathname`.
  Action
    None.
  Issued by
    httpserv.c, function http_server

If you have a question about Hercules, see the Hercules Frequently-Asked Questions page.

Last updated $Date: 2007/10/06 19:44:28 $ $Revision: 1.7 $