Using the new FrontController::getErrorResponse method in the REST controller