blob: 0bfe83150fc2fc787d95726319c71dd646eddb3d [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
Alex Klein231d2da2019-07-22 16:44:45 -060020
21
22# Validate only request successfully validated.
23RETURN_CODE_VALID_INPUT = 0
24# Validate only request did not pass validation.
25RETURN_CODE_INVALID_INPUT = 1