Alex Klein | b7cdbe6 | 2019-02-22 11:41:32 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | IMPORT_PATTERN = 'chromite.api.controller.%s' |
Alex Klein | 8cb365a | 2019-05-15 16:24:53 -0600 | [diff] [blame] | 7 | |
| 8 | # Endpoint ran successfully. |
| 9 | RETURN_CODE_SUCCESS = 0 |
| 10 | # Unrecoverable error. This includes things from missing required inputs to |
| 11 | # unhandled exceptions. |
| 12 | RETURN_CODE_UNRECOVERABLE = 1 |
| 13 | # The endpoint did not complete successfully, but did complete via a well |
| 14 | # handled path and produced actionable information relevant to the failure in |
| 15 | # the response. |
| 16 | RETURN_CODE_UNSUCCESSFUL_RESPONSE_AVAILABLE = 2 |
| 17 | # Notes the endpoint completed via a well handled path, but the result was not |
| 18 | # a successful execution of the endpoint. |
| 19 | RETURN_CODE_COMPLETED_UNSUCCESSFULLY = 3 |