Return '405 Method Not Allowed' from delete draft endpoints
When the `change.allowDrafts` setting is False, it is not allowed to
delete draft changes or patch sets.
Currently, if this is attempted an error '409 Conflict' is returned.
This is inconsistent with the '405 Method Not Allowed' that is returned
when attempting to create a new draft while `change.allowDrafts` is
false.
Change the draft change/patch set endpoints to also return 405 when
attempting to delete a draft while `change.allowDrafts` is false.
Change-Id: Ifdc3b8857a366c1cd089a706f4033ccf03d39572
2 files changed