addDocumentError

Adds errors to the response.

Return

the builder.

Parameters

documentError

A map from docType to error codes.