# Copyright 2015 icasdri
#
# This file is part of tuhi-flask.
#
# tuhi-flask is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# tuhi-flask is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with tuhi-flask.  If not, see <http://www.gnu.org/licenses/>.

CODE_UNKNOWN = -1
CODE_VALID_NOT_PROCESSED = 0
CODE_IGNORED = 1
CODE_MISSING = 11
CODE_INCORRECT_TYPE = 12
CODE_TOO_LONG = 21
CODE_INVALID_DATE = 23
CODE_INVALID_UUID = 31
CODE_UUID_CONFLICT = 32
# Copyright 2015 icasdri
#
# This file is part of tuhi-flask.
#
# tuhi-flask is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# tuhi-flask is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with tuhi-flask.  If not, see <http://www.gnu.org/licenses/>.

CODE_UNKNOWN = -99
CODE_BAD_JSON = -2

CODE_MISSING = 11
CODE_INCORRECT_TYPE = 12

CODE_TOO_LONG = 21
CODE_INVALID_DATE = 23
CODE_INVALID_UUID = 31
CODE_UUID_CONFLICT = 32

CODE_FORBIDDEN = 90
CODE_USER_NOT_EXIST = 91
CODE_PASSWORD_INCORRECT = 92

Update response_codes to reflect changes in API spec.