Add return codes to the docs.