# README

API Business Code Library

# Functions

Err2Coder converts the given err to Coder.
Str2Coder converts the given str to Coder.

# Variables

BadRequest means the request could not be understood by the server due to malformed syntax.
ErrClusterNotFound rainbondcluster not found.
business code for pkg/openapi/cluster.
20000~29999 for rainbond package ErrCreateRainbondPackage failed to create rainbond package.
30000~39999 for rainbond volume ErrCreateRainbondVolume failed to create rainbond volume.
40000~49999 for rainbond component ErrCreateRainbondVolume failed to create rainbond component.
business code for pkg/openapi/cluster.
10000~19999 for global configs.
business code for pkg/openapi/cluster.
business code for pkg/openapi/cluster.
business code for pkg/openapi/cluster.
business code for pkg/openapi/cluster.
business code for pkg/openapi/cluster.
business code for pkg/openapi/cluster.
business code for pkg/openapi/cluster.
NotFound means the server has not found anything matching the request.
OK means everything si good.
ServerErr means the server encountered an unexpected condition which prevented it from fulfilling the request.

# Structs

Code represents a business code.

# Interfaces

Coder has ability to get code, msg or detail from error.