fix for GRAILS-11117 "Incorrect status code for read-only REST controller"