1// Copyright 2021 The Pigweed Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); you may not 4// use this file except in compliance with the License. You may obtain a copy of 5// the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12// License for the specific language governing permissions and limitations under 13// the License. 14 15/** Pigweed Status class; mirrors pw::Status. */ 16 17export enum Status { 18 OK = 0, 19 CANCELLED = 1, 20 UNKNOWN = 2, 21 INVALID_ARGUMENT = 3, 22 DEADLINE_EXCEEDED = 4, 23 NOT_FOUND = 5, 24 ALREADY_EXISTS = 6, 25 PERMISSION_DENIED = 7, 26 RESOURCE_EXHAUSTED = 8, 27 FAILED_PRECONDITION = 9, 28 ABORTED = 10, 29 OUT_OF_RANGE = 11, 30 UNIMPLEMENTED = 12, 31 INTERNAL = 13, 32 UNAVAILABLE = 14, 33 DATA_LOSS = 15, 34 UNAUTHENTICATED = 16, 35} 36