#6026 add post exception
#6026 refactor
Merge pull request #6056 from dotCMS/issue-6026-post-rest-api

Issue 6026 post rest api
Merge branch 'master' of https://github.com/dotCMS/dotCMS into issue-5201-update-license-code