Rename error object `code` property to `statusCode`.

This is primarily for compatibility with the restify package's
error object, but it's also less ambiguous nomenclature.