We introduce bosonic error correction codes for particle loss and dephasing errors, constructed from states generated by particle-number measurements on two-mode Gaussian states. We analyze these states for their suitability in correcting such errors and identify the features most conducive to error mitigation.