16e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 26e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 36e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// found in the LICENSE file. 46e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 56e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)/** 61320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci * @fileoverview Errors reported by top-level request handlers. 76e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) */ 86e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)'use strict'; 96e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 106e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)/** 116e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) * Response status codes 126e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) * @const 136e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) * @enum {number} 146e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) */ 156e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)var ErrorCodes = { 166e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'OK': 0, 176e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'OTHER_ERROR': 1, 186e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'BAD_REQUEST': 2, 196e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'CONFIGURATION_UNSUPPORTED': 3, 206e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'DEVICE_INELIGIBLE': 4, 216e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'TIMEOUT': 5 226e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)}; 231320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci 241320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci/** 251320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci * An error object for responses 261320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci * @typedef {{ 271320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci * errorCode: ErrorCodes, 281320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci * errorMessage: (?string|undefined) 291320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci * }} 301320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci */ 311320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccivar U2fError; 32