Amphi returns a five-character SQLSTATE with every server error. Clients should branch on the
code, not on localized message text. The list below covers the codes currently emitted by the
parser, binder, planner, executor, session, lock manager, and wire protocol.
internal error, corruption, or unexpected I/O failure
SQLSTATEs are also included in protocol ErrorResponse messages, client errors, logs, and test
fixtures. New error paths must choose an existing compatible code or add a documented code before
they are exposed to clients.