Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / cryptotoken / errorcodes.js
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6  * @fileoverview Error codes reported by top-level request handlers.
7  */
8 'use strict';
9
10 /**
11  * Response status codes
12  * @const
13  * @enum {number}
14  */
15 var ErrorCodes = {
16   'OK': 0,
17   'OTHER_ERROR': 1,
18   'BAD_REQUEST': 2,
19   'CONFIGURATION_UNSUPPORTED': 3,
20   'DEVICE_INELIGIBLE': 4,
21   'TIMEOUT': 5
22 };