Documentation ¶ Index ¶ func Error(next http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Error ¶ func Error(next http.Handler) http.Handler ErrorMiddleware is a middleware that wraps http.ResponseWriter such that it forces responses with status codes 4xx/5xx to have Content-Type: application/vnd.api+json Types ¶ This section is empty. Source Files ¶ View all Source files error_middleware.go Click to show internal directories. Click to hide internal directories.