Creates the exception with a message and optional HTTP statusCode.
message
statusCode
const ApiClientException(this.message, {this.statusCode});