Fix error when increment = 0
Change server api error handling, add some errors