summaryrefslogtreecommitdiffstats
path: root/server/lib/httpresponse.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/httpresponse.js')
-rw-r--r--server/lib/httpresponse.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/httpresponse.js b/server/lib/httpresponse.js
index ff1010a..29399b2 100644
--- a/server/lib/httpresponse.js
+++ b/server/lib/httpresponse.js
@@ -6,8 +6,8 @@ response.successBatch = (res, action, type, count, data = {}) => res.status(200)
response.notFound = (res, id) => res.status(404).send({ error: 'NOT_FOUND', message: 'ID ' + id + ' does not exist.' })
response.invalidId = (res, zeroAllowed) => res.status(400).send({ error: 'INVALID_ID', message: 'ID has to be an integer' + (zeroAllowed ? '' : ' greater than 0') + '.' })
response.invalidBodyValue = (res, key, rule) => res.status(400).send({
- error: 'BAD_REQUEST',
- message: 'JSON body value for key "' + key + '" has to be ' + rule + '.'
+ error: 'BAD_REQUEST',
+ message: 'JSON body value for key "' + key + '" has to be ' + rule + '.'
})
-module.exports = response \ No newline at end of file
+module.exports = response