Mike Frysinger | f1ba7ad | 2022-09-12 05:42:57 -0400 | [diff] [blame] | 1 | # Copyright 2019 The ChromiumOS Authors |
Alex Klein | b7cdbe6 | 2019-02-22 11:41:32 -0700 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Alex Klein | 1699fab | 2022-09-08 08:46:06 -0600 | [diff] [blame] | 5 | IMPORT_PATTERN = "chromite.api.controller.%s" |
Alex Klein | 8cb365a | 2019-05-15 16:24:53 -0600 | [diff] [blame] | 6 | |
| 7 | # Endpoint ran successfully. |
| 8 | RETURN_CODE_SUCCESS = 0 |
| 9 | # Unrecoverable error. This includes things from missing required inputs to |
| 10 | # unhandled exceptions. |
| 11 | RETURN_CODE_UNRECOVERABLE = 1 |
| 12 | # The endpoint did not complete successfully, but did complete via a well |
| 13 | # handled path and produced actionable information relevant to the failure in |
| 14 | # the response. |
| 15 | RETURN_CODE_UNSUCCESSFUL_RESPONSE_AVAILABLE = 2 |
| 16 | # Notes the endpoint completed via a well handled path, but the result was not |
| 17 | # a successful execution of the endpoint. |
| 18 | RETURN_CODE_COMPLETED_UNSUCCESSFULLY = 3 |
Alex Klein | 231d2da | 2019-07-22 16:44:45 -0600 | [diff] [blame] | 19 | |
| 20 | |
| 21 | # Validate only request successfully validated. |
| 22 | RETURN_CODE_VALID_INPUT = 0 |
| 23 | # Validate only request did not pass validation. |
| 24 | RETURN_CODE_INVALID_INPUT = 1 |