Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | |
| 4 | Logging |
| 5 | ======= |
| 6 | |
| 7 | |
efiacor | 0fa0198 | 2019-04-08 14:52:08 +0000 | [diff] [blame] | 8 | **Where to Access Information** |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 9 | Data Router uses logback framework to generate logs. |
| 10 | |
efiacor | 0fa0198 | 2019-04-08 14:52:08 +0000 | [diff] [blame] | 11 | **Error / Warning Messages** |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 12 | Currently Data Router does not have any unique error codes. However the following are the common HTTP error codes that |
| 13 | could possibly occur in Data Router: |
| 14 | |
| 15 | OK = 200 : The normal response from a successful update or get of a feed or subscription |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 16 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 17 | CREATED = 201 : the normal response from successfully creating or subscribing to a feed. |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 18 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 19 | NO_CONTENT = 204 : the normal response from a successful publish attempt and on successfully deleting a feed or subscription |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 20 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 21 | MOVED_PERMANENTLY = 301 :the normal redirect response from prov to a publisher |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 22 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 23 | BAD_REQUEST = 400: Usually indicates that either Json object in request body is incorrect in some way, or an Invalid parameter value was included in query string. |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 24 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 25 | UNAUTHORIZED = 401 : Usually indicated either request was missing Authorization header, or indicates incorrect Username/password credentials |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 26 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 27 | FORBIDDEN = 403 : Usually indicates the request originated from an unauthorized IP address, or that a client certificate was not a part of authorized list. |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 28 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 29 | NOT_FOUND = 404 : Usually indicates an incorrect URI |
Emmett Cox | c14d957 | 2018-11-14 17:00:18 +0000 | [diff] [blame] | 30 | |
Emmett Cox | 8dde0cc | 2018-09-17 10:25:09 +0100 | [diff] [blame] | 31 | METHOD_NOT_ALLOWED = 405 : Indicates an HTTP method is not accepted for given URI |