Currently only some parameters for ResultType are parsed for OGNL expression. For example, HttpHeaderResult implements that option only for errorMessage and Headers, but not for errorCode or status. So it is not possible to set dinamically the error code, it needs to be hardcoded in the XML configuration file. The same issue happens with the JSONResult. That should be changed in order to support OGNL expression for parameter values where it is possible.