Folders: Return 409 Conflict status when folder already exists (#36429) (#36461)

* Return 409 Conflict when trying to post folder that already exists

* Fix tests

* Update documentation for new error message in folders api

(cherry picked from commit a18d3007a7)

Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-07-06 11:32:58 +02:00
committed by GitHub
co-authored by Dimitris Sotirakis
parent 4efbf432a4
commit fd515d1318
3 changed files with 10 additions and 6 deletions
+1
View File
@@ -154,6 +154,7 @@ Status Codes:
- **400** – Errors (invalid json, missing or invalid fields, etc)
- **401** – Unauthorized
- **403** – Access Denied
- **409** - Folder already exists
## Update folder