Skip to content

Commit

Permalink
updated the response code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento authored Mar 20, 2024
1 parent a006a7a commit 20ffd9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/contentService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,8 @@ function retireContentAPI (req, response) {
} else {
rspObj.errCode = reqMsgRetire.RETIRE_OBJECT_TYPE.RETIRE_ONLY_DRAFT_CODE
rspObj.errMsg = reqMsgRetire.RETIRE_OBJECT_TYPE.RETIRE_ONLY_DRAFT_MESSAGE
rspObj.responseCode = responseCode.UNAUTHORIZED_ACCESS
return response.status(401).send(respUtil.errorResponse(rspObj))
rspObj.responseCode = responseCode.CLIENT_ERROR
return response.status(400).send(respUtil.errorResponse(rspObj))
}
},

Expand Down

0 comments on commit 20ffd9d

Please sign in to comment.