Incepere creare procese separate
This commit is contained in:
@@ -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};
|
||||
Reference in New Issue
Block a user