3.3.4.1.2 Sending Any Error Response Message

In response to an error in the processing of any SMB request, the CIFS server MUST return the correct response message for the request as specified in the command definition in section 2.2.4. The error code MUST be placed into the SMB_Header.Status field. If the use of NT Status codes has been negotiated, the error code MUST be a 32-bit NTSTATUS code. Otherwise, the error code MUST be an SMBSTATUS code.<229>

Unless otherwise specified, all response messages that indicate an error MUST include:

  • The command code of the request that generated the error.

  • The UID, TID, PID, MID, and (if a connectionless transport is in use) CID of the request.

  • No parameters and no data; that is, SMB_Parameters.WordCount = 0x00 and SMB_Data.ByteCount = 0x0000.

This format is referred to as an "error response" message.

The error response message format MUST be used unless otherwise specified.

If the client request is part of an AndX chain, processing of the AndX request chain terminates with the request that generated the error. The error response MUST be the last response in the returned AndX chain.