Marked as 0.2.8
This commit is contained in:
@@ -17,16 +17,16 @@ var Note = require("./note.js");
|
||||
//public
|
||||
var response = {
|
||||
errorForbidden: function (res) {
|
||||
res.status(403).send("Forbidden, oh no.")
|
||||
res.status(403).send("Forbidden, oh no.");
|
||||
},
|
||||
errorNotFound: function (res) {
|
||||
responseError(res, "404", "Not Found", "oops.")
|
||||
responseError(res, "404", "Not Found", "oops.");
|
||||
},
|
||||
errorInternalError: function (res) {
|
||||
responseError(res, "500", "Internal Error", "wtf.")
|
||||
responseError(res, "500", "Internal Error", "wtf.");
|
||||
},
|
||||
errorServiceUnavailable: function (res) {
|
||||
res.status(503).send("I'm busy right now, try again later.")
|
||||
res.status(503).send("I'm busy right now, try again later.");
|
||||
},
|
||||
newNote: newNote,
|
||||
showFeatures: showFeatures,
|
||||
|
||||
Reference in New Issue
Block a user