change ajax get method, because get method can't get error code.