apiError

fun apiError(statusCode: Int, message: String): PlayBackAPIError

Factory method to create an ApiError instance.

Return

An instance of ApiError representing the API error.

Parameters

statusCode

The HTTP status code of the error.

message

The error message.