Added error code documentation