2.2.2.2 ErrorData format

The ErrorData MUST be formatted based on the error code being returned in the Status field of the SMB2 Packet header for the SMB2 ERROR Response (section 2.2.2).

If the Status field of the header of the response is set to STATUS_STOPPED_ON_SYMLINK, this field MUST contain a Symbolic Link Error Response as specified in section 2.2.2.2.1.

If the Status field of the header of the response is set to STATUS_BAD_NETWORK_NAME, and the ErrorId in the SMB2 ERROR Context response is set to SMB2_ERROR_ID_SHARE_REDIRECT, this field MUST contain a Share Redirect Error Response as specified in section 2.2.2.2.2.

If the Status field of the header of the response is set to STATUS_BUFFER_TOO_SMALL, this field MUST be set to a 4-byte value indicating the minimum required buffer length.