specs for error middleware; make use of tacokit error classes