There are several optimality criteria to choose from: Butterworth, Chebyshev (type $1$ and $2$), Cauer, etc., and each of them will give you a different magnitude response.
Butterworth filters have an especially simple magnitude (gain) function. For a low pass filter of order $n$ (i.e., with $n$ poles) you get
$$G_{LP}(f)=\frac{1}{\sqrt{1+\left(\frac{f}{f_c}\right)^{2n}}}\tag{1}$$
where $f_c$ is the $3$-dB cut-off frequency. The gain of an $n^{th}$ order Butterworth high pass filter is
$$G_{HP}(f)=\frac{\left|\frac{f}{f_c}\right|^{n}}{\sqrt{1+\left(\frac{f}{f_c}\right)^{2n}}}\tag{2}$$
The general formulas for band pass and band stop filters are more complicated. For a fourth order band pass filter you get
$$G_{BP}(f)=\frac{f_c^2f^2}{\sqrt{f^8-4f_0^2f^6+(f_c^4+6f_0^4)f^4-4f_0^6f^2+f_0^8}}\tag{3}$$
where $f_0$ is the center frequency:
$$f_0=\sqrt{f_{l}f_{u}}\tag{4}$$
with $f_l$ and $f_u$ the lower and upper cut-off frequencies, respectively. The frequency $f_c$ is given by
$$f_c=\frac{f_u^2-f_0^2}{f_u}\tag{5}$$
Finally, the magnitude of a fourth order Butterworth band stop filter is given by
$$G_{BS}(f)=\frac{(f_0^2-f^2)^2}{\sqrt{f^8-4f_0^2f^6+(f_c^4+6f_0^4)f^4-4f_0^6f^2+f_0^8}}\tag{6}$$
where the center frequency $f_0$ and $f_c$ are given by $(4)$ and $(5)$, respectively.
The figure below shows the magnitudes computed according to Eqs $(1)$, $(2)$, $(3)$, and $(6)$. The cut-off frequency for the low and high pass filters was chosen as $f_c=4$, and the lower and upper cut-off frequencies for the band pass and the band stop filters were chosen as $f_l=2$ and $f_u=4$, respectively, resulting in a center frequency $f_0=2\sqrt{2}$.
