connect-requires-json This middleware will validate incoming request bodies, throwing a 400 when the body is empty and 415 when the Content-Type header does not contain json.