public static function throwHttpExceptionWithCode($error_code = null, $payload = [], $hateoas = [], $replacements = [])
    {
        $errors = static::getErrors([$error_code], [$error_code => $payload]);
        $error = current($errors);
        $replacements = self::getReplacements($error['system_message'], $error['payload'], $error['help'], $hateoas, $replacements);
        app('api.exception')->setReplacements($replacements);
        $exception = self::getExceptionObject(static::$errors[$error['error_code']]['exception'], $error);
        throw $exception;
    }