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

22 lines
401 B
JavaScript
Raw Normal View History

2017-05-10 11:04:06 +02: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,
2017-05-11 15:14:57 +02:00
unauthorized: 401,
2017-05-10 11:04:06 +02:00
forbidden: 403,
notfound: 404,
wrongmethod: 405,
conflict: 409,
wrongdatatyperequest: 406,
wrongmediasend: 415,
servererror: 500
};