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
|
||||
}
|
||||
if !form.Validate() {
|
||||
w.WriteHeader(http.StatusUnprocessableEntity)
|
||||
mustRenderEditProductForm(w, r, form)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue