Next Topic

Previous Topic

Book Contents

Command/Reply Formatting Rules

The commands sent by a client and responses sent back by the server must adhere to the following formatting conventions.

Client Command Format

Server Response Format

The server always responds to client initiated commands/requests with text in the format: <status code> <response code> <optional informative text>
where <status_code> is one of the following:

Server Response Codes

Response Code Description

200

Server ready for initial handshake

201

Request accepted and processed, ready for next request

203

Request accepted, multi line response follows

298

Request accepted, server will halt

299

Session ended, server will close socket connection

300 - 399

Debugging information. These messages will be printed before a 200, 400 or 500 level message

400 level - client side error (try again)

401

Authentication failure

402

Logged in user does not have permission to perform requested task

410

Unknown command - use 'help' for list of commands

411

Feature has not been implemented yet

412

Not enough parameters specified - use 'help command.name'

413

Invalid Parameter parameter specified - use 'help command.name'

420

One or more objects already exist

421

One or more of the objects requested does not exist

500 level - server side error

595

Communication failure with remote database, please try again later

596

Maintenance in progress, please try again later

597

Server too busy, please try again later

598

Backend failure, server will close socket connection

599

Server unavailable, server will close socket connection