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

Issue 6026 post rest api