connect-middleware for JSON API status responses