Improve Member Role API response when group is not root

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

We should provide a better error message if someone tries to create a custom role on a non-root group

Background

A separate MR has been raised to document the current behaviour of the API, where a 404 is returned if the group is not a root group: !112266 (merged)

This issue is based on a Slack thread (internal).

Edited by 🤖 GitLab Bot 🤖