blob: 6c70f00abf468a95e9b7ee1b5ce1c2bb79222576 [file] [log] [blame]
Alex Kleinb7cdbe62019-02-22 11:41:32 -07001# -*- 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
6IMPORT_PATTERN = 'chromite.api.controller.%s'
Alex Klein8cb365a2019-05-15 16:24:53 -06007
8# Endpoint ran successfully.
9RETURN_CODE_SUCCESS = 0
10# Unrecoverable error. This includes things from missing required inputs to
11# unhandled exceptions.
12RETURN_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.
16RETURN_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.
19RETURN_CODE_COMPLETED_UNSUCCESSFULLY = 3