NXP-11503: Automation requests with valid credentials but that lacks some permissions on a doc should be mapped to HTTP 403 instead of 401
NXP-11503: remove debug println introduced by error in last commit
NXP-11503: Use HttpServletResponse constants instead of harcoded HTTP status codes
NXP-11503: Allow setting the HTTP status code for a permission exception in Automation server through the org.nuxeo.ecm.automation.server.permission.httpcode property
NXP-11503: Format