The commands sent by a client and the responses sent back by the server must adhere to the following formatting conventions.
Client Command Format
\r\n
) is considered to be the same as a newline character (\n
) alone.|
). Example command_name value1 [ | value2 | value3 ... ]
.|
) is not permitted as part of the value.| |
) should be provided.Server Response Format
The server always responds to client initiated commands/requests with text in the following format: <status code>
optional informative text
where status code is one of the following:
OK
, which indicates the command/request was successful.ERR
, which is indicative of failure to execute the request.