mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 09:45:19 +02:00
fix: wrong error code for failed precondition
This commit is contained in:
@@ -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