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