Adds error code documentation

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>