New API responses with good errors

This commit is contained in:
Jori Lallo
2016-09-17 14:53:30 -07:00
parent e631025887
commit fcc83dd2d6
11 changed files with 86 additions and 50 deletions

View File

@@ -1,7 +1,9 @@
exports[`#user.info should require authentication 1`] = `
Object {
"error": "Authentication required",
"ok": false
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
"status": 401
}
`;
@@ -13,6 +15,7 @@ Object {
"name": "User 1",
"username": "user1"
},
"ok": true
"ok": true,
"status": 200
}
`;