Fix error response when trying to set invalid versioning state on bucket