Fixing wrong class parameter for Rest error rendering