Added jsdoc documentation for error codes.

Change-Id: I97e55eac05a6b7379343d02234fb218cdc93fb09
Reviewed-on: http://review.couchbase.org/28840
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>