fixed error return value from the server