# Functions
Middleware to get or attach a correlation ID to the request, useful for tracing requests through distributed systems.
Middleware to handle errors returned by handler
If returned error is of type Error{}, then a custom JSON response is returned in the response, with status Error{}.StatusCode and body `{"message": "Error{}.Message"}`
If the logger middleware is also in use, this middleware will log a message for any errors.
Middleware to configure a logger in the context.Context, which is then used by other middleware (if available), including the error handler.