mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-19 21:12:53 -04:00
fix: wrong error code for failed precondition
This commit is contained in:
1 parent
3931578d4c
commit
416b518873
3 files changed
+4
-2
No files matched your search
@@ -135,6 +135,8 @@ func (e Error) Render(w http.ResponseWriter, r *http.Request) {
|
||||
status = http.StatusMethodNotAllowed
|
||||
case ItemIsLocked:
|
||||
status = http.StatusLocked
|
||||
case PreconditionFailed:
|
||||
status = http.StatusPreconditionFailed
|
||||
default:
|
||||
status = http.StatusInternalServerError
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user