Infor Proxy

Errors

If Infor Proxy catches an error at any point throughout the duration of a request it will return an error object.

Most of the time the error will contain a "details" field describing the error in more detail (usually via Error.message), and a "data" field which usually contains any data that the proxy was able to get from upstream servers. The data field may also contain other error information from the upstream server. EITHER OF THESE FIELDS MAY BE NULL IN SOME CASES. This is what the errors look like:

{
    status: 500,
    message: "Internal Server Error",
    details: "Failed to get response from upstream server.",
    data: "Invalid token",
}

For the sake of consistency the Infor Proxy should only ever return errors in this format. Errors not in this format should be considered bugs.

Endpoints