middleware is working, 15 tests still failing
Added error gen to response class