I read the official tuturial of Passport and several examples for REST API. However, when I post a registration request, I could only get a html page which is not showing error,