ROO-3486: Implemented fix proposed in the JIRA to return 500 rather than...

... 2xx when errors occur in JSON controllers.