blob: 3365699a38be862c264c6d8a9cfd2454d706c90d [file] [log] [blame]
Michael Hanl99cb9632016-06-29 16:24:40 +02001# generic non localized messages for API error and message codes
2# below 500 generic status codes for low level function
3# 501 - 999 specific section codes for database, validation,
4# upper 1000 service messages as feedback for user (partially masking low level codes) with optional descriptin of low level error
Michael Hanlc0ed00f2016-06-23 14:33:10 +02005
Michael Hanl99cb9632016-06-29 16:24:40 +02006
7# standard system errors
8100 : "Default Kustvakt failure!"
9101 : "No Entry found!"
Michael Hanlc0ed00f2016-06-23 14:33:10 +020010102 : "Entry exists already!"
Michael Hanl99cb9632016-06-29 16:24:40 +020011103 : "Unsupported operation!"
12104 : "Illegal argument found. Request could not be processed!"
13105 : "Missing argument!"
14106 : "Connection Error!"
15107 : "Missing arguments!"
16108 : "Function Not supported!"
Michael Hanlc0ed00f2016-06-23 14:33:10 +020017
18
Michael Hanl99cb9632016-06-29 16:24:40 +020019# 400 codes for authorization and rewrite functions
Michael Hanlc0ed00f2016-06-23 14:33:10 +020020
Michael Hanl99cb9632016-06-29 16:24:40 +020021400 : "Policy failure!"
22# permission denied is a service code, here it should be more
23# specific about the nature of the error/message
24401 : ""
25402 : "Unsupported resource"
26403 : "Failed rewrite!"
27404 : ""
28405 : "Resource could not be found" --> missing resource
29406 : "No target for resource policy!"
30407 : "No condition for resource policy!"
31408 : "No permission for resource policy!"
32409 : "No policies for resource!"
33
34# 500 database errors
35
36500 : ""
37501 : "Database retrieval failure!"
38502 : "Database insert failure!"
39503 : "Database delete failure!"
40504 : "Database update failure!"
41505 : ""
42506 : ""
43507 : ""
44508 : ""
45509 : ""
46510 : ""
47511 : ""
48512 : ""
49513 : ""
50
51# validation messages
52
53600 : ""
54601 : ""
55602 : ""
56603 : ""
57604 : ""
58605 : ""
59
60
61
62# 1000 service status message codes for logging
63
641000 : "Status Ok!"
651001 : "Nothing changed!"
661002 : "Request could not be processed!"
671003 : "Access denied!"
681004 : ""
691005 : ""
701006 : ""
711007 : ""
721008 : ""
731009 : ""
741010 : ""
75
76
77# 2000 codes for REST API services
782000 : "Account deactivated. Please verify account before using this API"
792001 : "Account confirmation failed. Please contact an adminstrator"
802002 : "Already logged in!"
812003 : "Authentication credentials expired!"
822004 : "Bad credentials!"
832005 : ""
842006 : "Password reset failed"
85
862007 : "Login successful!"
872008 : "Login failed!"
882009 : "Logout successful!"
892010 : "Logout failed!"
902011 : "Client registration failed!"
912012 : "Deleting client information failed!"
922013 : "Client could not be authorized!"
Michael Hanlc0ed00f2016-06-23 14:33:10 +020093