|
@@ -45,6 +45,8 @@ func httpError(w http.ResponseWriter, err error) {
|
|
http.Error(w, err.Error(), http.StatusNotFound)
|
|
http.Error(w, err.Error(), http.StatusNotFound)
|
|
} else if strings.HasPrefix(err.Error(), "Bad parameter") {
|
|
} else if strings.HasPrefix(err.Error(), "Bad parameter") {
|
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
|
|
|
+ } else if strings.HasPrefix(err.Error(), "Impossible") {
|
|
|
|
+ http.Error(w, err.Error(), http.StatusNotAcceptable)
|
|
} else {
|
|
} else {
|
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
|
}
|
|
}
|