What is the density of the earth's atmosphere at an altitude of four hundred kilometers?
Variation with solar activity
It can vary by a factor of 50 depending on solar activity (and the model that you choose to believe).
Here are good references.
One or more of these gives pressure and temperature rather than density. You can assume that at 400 km (and somewhat below and above it) the atmosphere is primarily atomic oxygen (mass = 16 not 32) to get density using the ideal gas law.
Note that you can get quite a range of densities depending on the solar activity specified. This answer to What is the ISS drag? shows altitude loss rate for the ISS varying from 7 m/day to 400 m/day depending on solar activity.
From this answer to What orbit would a space station need to stay in orbit for N years?:
Found in this answer, from https://en.wikipedia.org/wiki/Scale_height Wertz et al. SSC12-IV-6, 26th Annual AIAA/USU Conference on Small Satellites.
Diurnal (daily) variation
For more aboutHat-tip to @Peter-ReinstateMonica for pointing this out.
There is definitely a diurnal component to the temperature of the thermosphere and that will lead to changes in density, and this whole topiceven drives diurnal tides, but it's complicated (see Figure 1 below).
However since orbit decay is a slow process, we primarily worry about some kind of average density experienced over a given orbit. An equatorial orbit in LEO will sample roughly 15 day/night cycles per day, a Sun-synchronous orbit might sample 15 dawn/dusk cycles per day.
From "Dynamics of the Thermosphere", Jeffrey M. FORBES, Journal of the Meteorological Society of Japan, Vol. 85B, pp. 193--213, 2007
Fig. 1. Energy input, conversion and transport processes relevant to the Ionosphere-Thermosphere (IT) system. Green indicates energy sources from above the thermosphere, blue indicates influences of lower atmospheric regions on the thermosphere, and red indicates energy conversion and transport processes within the thermosphere.
For further reading see also: