3.2.5.8 Executing a Received Batch Request

The directives defined in this section apply when executing a received Batch request as specified in Batch Request (section 2.2.7.6).

The server MUST validate the HTTP request using the "multipart/mixed" content type, and the request MUST conform to the syntax for Batch requests defined in Batch Request (section 2.2.7.6). If this validation fails, a 4xx error response code MUST be returned, as specified in Common Response Codes (section 3.2.8). If the validation succeeds, the server MUST parse the batch request into a set of individual operations and perform each operation specified in the batch according to the semantics outlined in Batch Request (section 2.2.7.6).

Each MIME part within the Batch request using the application/http content type has to be processed according to the "executing rules" for the request type defined in Message Processing Events and Sequencing Rules (section 3.2.5).

If the headers of a Batch request are received successfully, a data service MUST respond with a 202 (Accepted) response code allowing the service to signal that part of the request is received, but that processing of the request has not yet occurred. The response to a Batch request MUST adhere to the syntax and rules defined in Batch Responses (section 2.2.7.6.6).