Michael Hanl | 99cb963 | 2016-06-29 16:24:40 +0200 | [diff] [blame] | 1 | # 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 Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 5 | |
Michael Hanl | 99cb963 | 2016-06-29 16:24:40 +0200 | [diff] [blame] | 6 | |
| 7 | # standard system errors |
| 8 | 100 : "Default Kustvakt failure!" |
| 9 | 101 : "No Entry found!" |
Michael Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 10 | 102 : "Entry exists already!" |
Michael Hanl | 99cb963 | 2016-06-29 16:24:40 +0200 | [diff] [blame] | 11 | 103 : "Unsupported operation!" |
| 12 | 104 : "Illegal argument found. Request could not be processed!" |
| 13 | 105 : "Missing argument!" |
| 14 | 106 : "Connection Error!" |
| 15 | 107 : "Missing arguments!" |
| 16 | 108 : "Function Not supported!" |
Michael Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 17 | |
| 18 | |
Michael Hanl | 99cb963 | 2016-06-29 16:24:40 +0200 | [diff] [blame] | 19 | # 400 codes for authorization and rewrite functions |
Michael Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 20 | |
Michael Hanl | 99cb963 | 2016-06-29 16:24:40 +0200 | [diff] [blame] | 21 | 400 : "Policy failure!" |
| 22 | # permission denied is a service code, here it should be more |
| 23 | # specific about the nature of the error/message |
| 24 | 401 : "" |
| 25 | 402 : "Unsupported resource" |
| 26 | 403 : "Failed rewrite!" |
| 27 | 404 : "" |
| 28 | 405 : "Resource could not be found" --> missing resource |
| 29 | 406 : "No target for resource policy!" |
| 30 | 407 : "No condition for resource policy!" |
| 31 | 408 : "No permission for resource policy!" |
| 32 | 409 : "No policies for resource!" |
| 33 | |
| 34 | # 500 database errors |
| 35 | |
| 36 | 500 : "" |
| 37 | 501 : "Database retrieval failure!" |
| 38 | 502 : "Database insert failure!" |
| 39 | 503 : "Database delete failure!" |
| 40 | 504 : "Database update failure!" |
| 41 | 505 : "" |
| 42 | 506 : "" |
| 43 | 507 : "" |
| 44 | 508 : "" |
| 45 | 509 : "" |
| 46 | 510 : "" |
| 47 | 511 : "" |
| 48 | 512 : "" |
| 49 | 513 : "" |
| 50 | |
| 51 | # validation messages |
| 52 | |
| 53 | 600 : "" |
| 54 | 601 : "" |
| 55 | 602 : "" |
| 56 | 603 : "" |
| 57 | 604 : "" |
| 58 | 605 : "" |
| 59 | |
| 60 | |
| 61 | |
| 62 | # 1000 service status message codes for logging |
| 63 | |
| 64 | 1000 : "Status Ok!" |
| 65 | 1001 : "Nothing changed!" |
| 66 | 1002 : "Request could not be processed!" |
| 67 | 1003 : "Access denied!" |
| 68 | 1004 : "" |
| 69 | 1005 : "" |
| 70 | 1006 : "" |
| 71 | 1007 : "" |
| 72 | 1008 : "" |
| 73 | 1009 : "" |
| 74 | 1010 : "" |
| 75 | |
| 76 | |
| 77 | # 2000 codes for REST API services |
| 78 | 2000 : "Account deactivated. Please verify account before using this API" |
| 79 | 2001 : "Account confirmation failed. Please contact an adminstrator" |
| 80 | 2002 : "Already logged in!" |
| 81 | 2003 : "Authentication credentials expired!" |
| 82 | 2004 : "Bad credentials!" |
| 83 | 2005 : "" |
| 84 | 2006 : "Password reset failed" |
| 85 | |
| 86 | 2007 : "Login successful!" |
| 87 | 2008 : "Login failed!" |
| 88 | 2009 : "Logout successful!" |
| 89 | 2010 : "Logout failed!" |
| 90 | 2011 : "Client registration failed!" |
| 91 | 2012 : "Deleting client information failed!" |
| 92 | 2013 : "Client could not be authorized!" |
Michael Hanl | c0ed00f | 2016-06-23 14:33:10 +0200 | [diff] [blame] | 93 | |