Impelements error handling on server