Handler added for error codes from the serverside