Files

33 lines
661 B
JavaScript
Raw Permalink Normal View History

2014-07-14 10:44:54 -07:00
// Copyright 2014 Google Inc. All rights reserved
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
/**
2014-10-01 13:54:23 -07:00
* @fileoverview Errors reported by top-level request handlers.
2014-07-14 10:44:54 -07:00
*/
'use strict';
/**
* Response status codes
* @const
* @enum {number}
*/
var ErrorCodes = {
'OK': 0,
'OTHER_ERROR': 1,
'BAD_REQUEST': 2,
'CONFIGURATION_UNSUPPORTED': 3,
'DEVICE_INELIGIBLE': 4,
2014-11-09 01:50:40 -08:00
'TIMEOUT': 5
2014-07-14 10:44:54 -07:00
};
2014-10-01 13:54:23 -07:00
/**
* An error object for responses
* @typedef {{
* errorCode: ErrorCodes,
* errorMessage: (?string|undefined)
* }}
*/
var U2fError;