chore(rest): change error status codes for variable methods

- from 400 to 500 in case of ProcessEngineException

contributes to CAM-642