API error handling

The webservice endpoints will return the usual http status codes. But there may be warnings and/or warnings.

Special case ACCEPTED (http code 202)

Error and warning messages will be added to response. When the response is generated but there are errors during processing the status code will be 202 (ACCEPTED).

{
    "result": "/v1/clients/test/pdf/36fa6760-156b-4f14-9516-fc9ae495425f.pdf",
    "pageNb": 1,
    "errorsAndWarnings": [
        {
            "level": "Error",
            "message": "Can't download file from url: https://api-docs.share-enterprise.nl/testdata/docs/TrivireTest1.docx"
        }
    ]
}

When there are no errors, the status code will be 200; and the warnings - if any - will be added to the response.