web client UI: allow to edit plain text files

Fixes #567
This commit is contained in:
Nicola Murino
2021-10-09 14:17:28 +02:00
parent 9ca0b46f30
commit 64e87d64bd
29 changed files with 12048 additions and 51 deletions

View File

@@ -71,6 +71,9 @@ func getRespStatus(err error) int {
if os.IsNotExist(err) {
return http.StatusBadRequest
}
if os.IsPermission(err) {
return http.StatusForbidden
}
return http.StatusInternalServerError
}