Consider the following example which utilizes the basic auth middleware for a custom group and also uses a custom http error handler:
package main import (