cleanup error responses