public static function ofSqlOperation($operation, $patchInsert = false) {
        if ($operation === SqlOperations::INSERT) return HttpMethods::POST;
        if ($operation === SqlOperations::SELECT) return HttpMethods::GET;
        if ($operation === SqlOperations::UPDATE) return $patchInsert ? HttpMethods::PATCH : HttpMethods::PUT;
        if ($operation === SqlOperations::DELETE) return HttpMethods::DELETE;

        return Exceptions::InvalidSqlOperationException($operation);
    }