Simplified error handling for http routes using assert with status code that works well (but not exclusively) with rkusa/web.
Middleware usage
app := web.New()
app.Use(assert.Middleware())
Asserting
assert.OK(username != "", 400, "No username given")
assert.Error(err)
assert.Success(err, 400, "something failed")