Incepere creare procese separate

This commit is contained in:
andrei-mihnea-cerbu
2024-04-03 23:22:38 +03:00
parent 038b809dd8
commit ffeebf1177
58 changed files with 913 additions and 479 deletions
+1 -38
View File
@@ -33,43 +33,6 @@ const httpStatus = {
SERVICE_UNAVAILABLE: 503
};
const httpStatusMessages = {
// Informational
[httpStatus.CONTINUE]: "Continue",
[httpStatus.SWITCHING_PROTOCOLS]: "Switching Protocols",
[httpStatus.PROCESSING]: "Processing",
// Success
[httpStatus.OK]: "OK",
[httpStatus.CREATED]: "Created",
[httpStatus.ACCEPTED]: "Accepted",
[httpStatus.NO_CONTENT]: "No Content",
// Redirection
[httpStatus.MOVED_PERMANENTLY]: "Moved Permanently",
[httpStatus.FOUND]: "Found",
[httpStatus.SEE_OTHER]: "See Other",
[httpStatus.NOT_MODIFIED]: "Not Modified",
[httpStatus.TEMPORARY_REDIRECT]: "Temporary Redirect",
// Client Error
[httpStatus.BAD_REQUEST]: "Bad Request",
[httpStatus.UNAUTHORIZED]: "Unauthorized",
[httpStatus.FORBIDDEN]: "Forbidden",
[httpStatus.NOT_FOUND]: "Not Found",
[httpStatus.METHOD_NOT_ALLOWED]: "Method Not Allowed",
[httpStatus.CONFLICT]: "Conflict",
[httpStatus.GONE]: "Gone",
[httpStatus.UNSUPPORTED_MEDIA_TYPE]: "Unsupported Media Type",
// Server Error
[httpStatus.INTERNAL_SERVER_ERROR]: "Internal Server Error",
[httpStatus.NOT_IMPLEMENTED]: "Not Implemented",
[httpStatus.SERVICE_UNAVAILABLE]: "Service Unavailable"
};
const httpHeaders = {
JSON: { 'name': 'Content-Type', 'value': 'application/json' }
};
module.exports = {httpStatus, httpStatusMessages, httpHeaders};
module.exports = {httpStatus};