Subroutine HTTP_Aborted_Service(ProcErr)
/***********************************************************************************************************************

    This program is proprietary and is not to be used by or disclosed to others, nor is it to be copied without written
    permission from SRP Computer Solutions, Inc.

    Name        :   HTTP_Aborted_Service

    Description :   Handler program for the HTTP Aborted service module.

    Notes       :   Service handler for HTTP Requests that get aborted either due to Runtime Errors or Status Errors.
                    If the Debugger Intercept has been enabled, this handler will only receive Status Error aborts.

    Parameters  :
        ProcErr         [in] -- The procedural error data being passed in from the OEngineServer. Unless otherwise
                                changed, the only reason this should be called is if there was a runtime error in one
                                of the stored procedures that was called by the initial request.

    Metadata    :

    History     :   (Date, Initials, Notes)
        02/27/17    dmb     Original programmer. - [SRPFW-125]
        03/04/17    dmb     Replace direct logging with the CreateLogFile service. - [SRPFW-154]
        12/03/18    dmb     Update to use the SetResponseError service. - [SRPFW-257]

***********************************************************************************************************************/

#pragma precomp SRP_PreCompiler

$insert APP_INSERTS
$insert HTTP_INSERTS

// Generate a log file. Pass in the contents of the ProcErr argument as is.
HTTP_Services('CreateLogFile', 'Aborted', ProcErr)

HTTP_Services('SetResponseError', '', '', 500, ProcErr, FullEndpointURL)

Return
