app.request.promise
.postJSON("/api/login", {
email: this.email,
password: this.password
})
.then((...arg) => {
console.log("then", arg);
})
.catch((...arg) => {
console.log("error", arg);
});
What I got,
Response,
The arguments in catch callback have only status code.