HttpSendErrorPackageResponse
Sends an HTTP error code and an HTML reply.
#include <httpexp.h>
int HttpSendErrorPackageResponse (
HINTERNET hndl,
UINT32 HTTP_ERROR_CODE,
void *pData,
UINT32 szData);
If successful, returns 0. Otherwise, returns a nonzero error code.
The HttpSendErrorPackageResponse function allows you to reply with a single call when an error condition occurs.