Selective Errors middleware