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

22 lines
401 B
JavaScript

/**
* 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
};