opt-cc/server/routes/http-codes.js

22 lines
381 B
JavaScript
Raw Permalink Normal View History

2018-03-12 09:26:44 +01:00
/**
* mini-module providing the HTTP Status codes
* #
* @author Johannes Konert
* @module http-codes
*/
'use strict';
module.exports = {
success: 200,
created: 201,
nocontent: 204,
wrongrequest: 400,
unauthorized: 401,
forbidden: 403,
notfound: 404,
wrongmethod: 405,
conflict: 409,
wrongdatatyperequest: 406,
wrongmediasend: 415,
servererror: 500,
};