Add a missing StatusUnprocessableEntity HTTP response code
This commit is contained in:
parent
c2d8006748
commit
72fbed68ac
|
@ -124,6 +124,7 @@ func HandleUpdateProduct(w http.ResponseWriter, r *http.Request, params httprout
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !form.Validate() {
|
if !form.Validate() {
|
||||||
|
w.WriteHeader(http.StatusUnprocessableEntity)
|
||||||
mustRenderEditProductForm(w, r, form)
|
mustRenderEditProductForm(w, r, form)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue