Fixed error code in weserver