You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.3 KiB
JavaScript

module.exports = {
AUTHENTICATION_FAILED: {
code: 400,
message: "Authentication failed. Please login with valid credentials.",
success: false,
},
SUCCESSFUL_LOGIN: {
code: 200,
message: "Successfully logged in",
success: true,
},
INTERNAL_SERVER_ERROR: {
code: 500,
message: "Something unexpected happened",
success: false,
},
UNAUTHORIZED: {
code: 401,
message: "Your session has expired. Please login again",
success: false,
},
SUCCESSFUL_DELETE: {
code: 200,
message: "Successfully deleted",
success: true,
},
SUCCESSFUL_UPDATE: {
code: 200,
message: "Updated successfully",
success: true,
},
SUCCESSFUL: {
code: 200,
success: true,
message: "Successfully completed",
},
NOT_FOUND: {
code: 404,
success: true,
message: "Requested API not found",
},
ALREADY_EXIST: {
code: 200,
success: true,
message: "Already exists",
},
FORBIDDEN: {
code: 403,
message: "You are not authorized to complete this action",
success: false,
},
BAD_REQUEST: {
code: 400,
message: "Bad request. Please try again with valid parameters",
success: false,
},
IN_COMPLETE_REQUEST: {
code: 422,
message: "Required parameter missing",
success: false,
},
};