When creating a Managed Database, https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_create_cluster returns HTTP 422 if the droplet type or storage amount is not supported for managed databases.
The documentation should specify (or provide a way to look up) the list of legal values as opposed to requiring clients to guess.