@@ -11,14 +11,14 @@ var messages = map[ErrorCode]string{
1111 ErrorCodeDeploymentLocked : "The environment is locked." ,
1212 ErrorCodeDeploymentNotApproved : "The deployment is not approved" ,
1313 ErrorCodeDeploymentStatusInvalid : "The deployment status is invalid" ,
14+ ErrorCodeEntityNotFound : "It is not found." ,
15+ ErrorCodeEntityUnprocessable : "Invalid request payload." ,
16+ ErrorCodeInternalError : "Server internal error." ,
1417 ErrorCodeLockAlreadyExist : "The environment is already locked" ,
1518 ErrorCodeLicenseDecode : "Decoding the license is failed." ,
1619 ErrorCodeLicenseRequired : "The license is required." ,
17- ErrorCodeEntityNotFound : "It is not found." ,
18- ErrorCodeEntityUnprocessable : "Invalid request payload." ,
1920 ErrorCodeParameterInvalid : "Invalid request parameter." ,
2021 ErrorPermissionRequired : "The permission is required" ,
21- ErrorCodeInternalError : "Server internal error." ,
2222}
2323
2424func GetMessage (code ErrorCode ) string {
@@ -39,14 +39,14 @@ var httpCodes = map[ErrorCode]int{
3939 ErrorCodeDeploymentLocked : http .StatusUnprocessableEntity ,
4040 ErrorCodeDeploymentNotApproved : http .StatusUnprocessableEntity ,
4141 ErrorCodeDeploymentStatusInvalid : http .StatusUnprocessableEntity ,
42+ ErrorCodeEntityNotFound : http .StatusNotFound ,
43+ ErrorCodeEntityUnprocessable : http .StatusUnprocessableEntity ,
44+ ErrorCodeInternalError : http .StatusInternalServerError ,
4245 ErrorCodeLockAlreadyExist : http .StatusUnprocessableEntity ,
4346 ErrorCodeLicenseDecode : http .StatusUnprocessableEntity ,
4447 ErrorCodeLicenseRequired : http .StatusPaymentRequired ,
45- ErrorCodeEntityNotFound : http .StatusNotFound ,
46- ErrorCodeEntityUnprocessable : http .StatusUnprocessableEntity ,
4748 ErrorCodeParameterInvalid : http .StatusBadRequest ,
4849 ErrorPermissionRequired : http .StatusForbidden ,
49- ErrorCodeInternalError : http .StatusInternalServerError ,
5050}
5151
5252func GetHttpCode (code ErrorCode ) int {
0 commit comments