Skip to main content

apiUnauthorizedError

apiUnauthorizedError(message): ApiError

Creates a 401 Unauthorized error.

Parameters​

message​

string = responseMessages.unauthorizedError

custom error message

Returns​

ApiError