blob: 05fa75052672e8018344249b3d0c9d8e2b648ae2 [file] [log] [blame]
Alex Kleinb7cdbe62019-02-22 11:41:32 -07001# Copyright 2019 The Chromium OS 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
5IMPORT_PATTERN = 'chromite.api.controller.%s'
Alex Klein8cb365a2019-05-15 16:24:53 -06006
7# Endpoint ran successfully.
8RETURN_CODE_SUCCESS = 0
9# Unrecoverable error. This includes things from missing required inputs to
10# unhandled exceptions.
11RETURN_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.
15RETURN_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.
18RETURN_CODE_COMPLETED_UNSUCCESSFULLY = 3
Alex Klein231d2da2019-07-22 16:44:45 -060019
20
21# Validate only request successfully validated.
22RETURN_CODE_VALID_INPUT = 0
23# Validate only request did not pass validation.
24RETURN_CODE_INVALID_INPUT = 1