21 lines
379 B
JavaScript
21 lines
379 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,
|
|
forbidden: 403,
|
|
notfound: 404,
|
|
wrongmethod: 405,
|
|
conflict: 409,
|
|
wrongdatatyperequest: 406,
|
|
wrongmediasend: 415,
|
|
servererror: 500
|
|
};
|