Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl --request GET \ --url https://myapi.com/api \ --header 'authorization: Bearer ACCESS_TOKEN' \ --header 'content-type: application/json'


When and an endpoint is invoked with an expired token the server with send sends a HTTP status 401 response with the following messagepayload:


Code Block
languagejava
{
    "statusCode": 401,
    "statusText": "Unauthorized",
    "message": "Token expired.",
    "date": "2019-11-13T06:26:01",
    "statusFamily": "CLIENT_ERROR",
    "method": "GET",
    "uri": "http://platform-dev.dataloy.com/ws/rest/Cargo?filter=subCargos.freight%28GTE%292500000"

...