Errors

With basic authentication, if you fail to provide valid authentication credentials the expected error will be 401 Unauthorized, as shown below.

Figure 1. Example of a failed basic authentication call

Example of a failed basic authentication call

With token authentication, when an invalid or expired token is used, the expected error will be 401 Unauthorized. The body of the response will include a description of the problem, as shown below for the case of an expired token:

Figure 2. Example of a failed token authentication call

Example of a failed token authentication call

If you ask for a data source that does not exist you will receive a proper message in the error field.

Figure 3. Wrong data source

Wrong data source