The good news is that 304 and 316 stainless cannot be hardened by heat treatment (a property common to all 300-series stainless steels).
Heat treating stainless (ex. 440C) is typically a two-stage process. In the first, the material is heated to a very high temperature (ca. 1850F), typically in a two-step process, and quenched. This leaves the material in a very hard (and brittle) state. The next step is to temper it in an oven, typically following a specific temperature/time program, to reduce the hardness to the desired level. Warping is common in both steps, typically requiring a final surface-grinding operation to flatten the piece.
There are some air-quenchable steels (typ. tool steels) that are nearly stainless and much easier to harden (a one step: heat, then air-cool process). I forget the exact types.
Cheers,
Geoff S. - US-5156