f3046d2b | 29-Nov-2011 |
Tim Roes <mail@timroes.de> |
Second part of the error codes. Forgot some :(
Added the new error codes and categories:
--- 212 Not allowed to delete media
== 230 Media edit error --- 231 Filename not given --- 232 File is stil
Second part of the error codes. Forgot some :(
Added the new error codes and categories:
--- 212 Not allowed to delete media
== 230 Media edit error --- 231 Filename not given --- 232 File is still referenced --- 233 Could not delete file
show more ...
|
1c122589 | 29-Nov-2011 |
Tim Roes <mail@timroes.de> |
Using sensefull error codes.
Since there are currently a lot of error coded returning 1, that mean completly different thing, i guess it would be very nice to change this. A client should not be for
Using sensefull error codes.
Since there are currently a lot of error coded returning 1, that mean completly different thing, i guess it would be very nice to change this. A client should not be forced to parse the error message, the error code should be enough to explain the error.
This change suggests some error codes, that have a hierarchical structure. In the following list the categories begin with = and the error codes actually used with -.
= 100 Page errors == 110 Page access errors --- 111 User is not allowed to read the requested page --- 112 User is not allowed to edit the page == 120 Page existance errors --- 121 The requested page does not exist == 130 Page edit errors --- 131 Empty page id --- 132 Empty page content --- 133 Page is locked --- 134 Positive wordblock check
= 200 Media errors == 210 Media access errors --- 211 User is not allowed to read media --- 215 User is not allowed to list media == 220 Media existance errors --- 221 The requested media does not exist
= 300 Search errors == 310 Argument errors --- 311 The provided value is not a valid timestamp == 320 Search result errors --- 321 No chances in specified timeframe
show more ...
|