- Print
- DarkLight
- PDF
Logging/Error Reporting
The API has the capability to trace request and response information, as well as other information from the API controllers such as exceptions. As mentioned in section 4.3, this feature can be turned on and off in the configuration. The “MinimumLevel” of the tracing can also be set, for filtering which types of messages are logged. Possible levels are, in order, Debug, Info, Warn, Error, Fatal.
When communicating error information to users of the API, conventional HTTP status codes should be used where possible. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an information error with the request, and codes in the 5xx range indicate an error with the Safran Project Intrgation API server.