1
0
Fork 0

added missing function referenced by simple query API

This commit is contained in:
Jan Steemann 2012-12-05 18:44:35 +01:00
parent 5ca2930c67
commit 013fea7d01
1 changed files with 9 additions and 0 deletions

View File

@ -1061,6 +1061,14 @@ function firstRouting (type, parts) {
/// @{
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/// @brief convenience function to return an HTTP 400 error for a bad parameter
////////////////////////////////////////////////////////////////////////////////
function badParameter (req, res, name) {
resultError(req, res, exports.HTTP_BAD, exports.HTTP_BAD, "invalid value for parameter '" + name + "'");
}
////////////////////////////////////////////////////////////////////////////////
/// @brief returns a result
///
@ -1474,6 +1482,7 @@ exports.nextRouting = nextRouting;
exports.routingCache = function() { return RoutingCache; };
// standard HTTP responses
exports.badParameter = badParameter;
exports.resultBad = resultBad;
exports.resultError = resultError;
exports.resultNotFound = resultNotFound;