Added basic definition for client and server error functions.