If the socket is in HTTPs_SOCK_STATE_ERR state, HTTPsConn_Process() does not process the connection. This means that if an internal error occurs, the connection will be terminated before the webpage has a chance to show a HTTP 500: Internal Error status code to the user.