HTTPServiceResponse.Default

Syntax:

New HTTPServiceResponse(<StatusCode>, <Reason>, <Headers>)

Parameters:

<StatusCode> (required)

Type: Number.
State (reply) code returned by the HTTP service in accordance with the document located at: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
Note:
Unlike IIS, the Apache HTTP server does not support arbitrary reply codes. When Apache is used, it is recommended to use reply codes specified in the document located at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.

<Reason> (optional)

Type: String.
It contains a text transcript of the HTTP status code.
It is generated automatically in the service reply in the case of standard statuses.

<Headers> (optional)

Type: Map.
A collection of headers to be transferred to the client.

Description:

An HTTP service reply is formed based on the state code, reason and headers.

    

1C:Enterprise Developer's Community