Fix the bug of not calling the success/error methods as expected.
Make the return data convention to be the response text of the server.