diff --git a/http/README.md b/http/README.md index 8cf113812d..7b99955d1e 100644 --- a/http/README.md +++ b/http/README.md @@ -69,13 +69,13 @@ func (h *ThingHandler) handlePostThing(w http.ResponseWriter, r *http.Request) { req, err := decodePostThingRequest(ctx, r) if err != nil { - errors.EncodeHTTP(ctx, err, w) + EncodeError(ctx, err, w) return } // Do stuff here if err := h.ThingService.CreateThing(ctx, req.Thing); err != nil { - errors.EncodeHTTP(ctx, err, w) + EncodeError(ctx, err, w) return }