Updated DefaultErrors to new Middleware signatures