401 Unauthorized

A request not being authorized can have 2 causes.

  1. No authorization parameters/credentials were provided (401001)
STATUS:
  401 Unauthorized
BODY:
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
  1. The authorization parameters/credentials provided are not valid. (401002)
STATUS:
  401 Unauthorized
BODY:
{
  "code": 401002,
  "message": "Incorrect authentication credentials.",
  "detail": "Incorrect authentication credentials."
}